Open Inventor
Release 2023.2.3
Loading...
Searching...
No Matches
PoStreamLineMotion.h
Go to the documentation of this file.
1
/*=======================================================================
2
*** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3
*** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4
*** ***
5
*** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6
*** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7
*** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8
*** ***
9
*** RESTRICTED RIGHTS LEGEND ***
10
*** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11
*** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12
*** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13
*** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14
*** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15
*** ***
16
*** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17
*** BORDEAUX, FRANCE ***
18
*** ALL RIGHTS RESERVED ***
19
**=======================================================================*/
20
/*=======================================================================
21
** Author : VSG (MMM YYYY)
22
**=======================================================================*/
23
24
#ifndef _PO_STREAMLINEMOTION_
25
#define _PO_STREAMLINEMOTION_
26
27
#include <
MeshViz/3Ddata/PoStreamParticleMotion.h
>
28
#include <
Inventor/fields/SoSFFloat.h
>
29
#include <
Inventor/fields/SoSFColor.h
>
30
77
class
PoStreamLineMotion
:
public
PoStreamParticleMotion
{
78
79
SO_KIT_HEADER
(
PoStreamLineMotion
) ;
80
81
/* Define fields for new parts */
82
SO_KIT_CATALOG_ENTRY_HEADER
(groupStreamLineMotion) ;
83
84
85
public
:
86
90
PoStreamLineMotion
();
91
95
virtual
void
rebuild
();
96
97
/* Fields */
98
103
SoSFFloat
lineWidth
;
104
108
SoSFColor
lineColor
;
109
114
SoSFColor
particleColor
;
115
116
/*----------------------------------------------------------------------------*/
117
private
:
118
static
void
initClass() ;
119
static
void
exitClass() ;
120
121
private
:
122
virtual
~PoStreamLineMotion
() ;
123
// Destructor
124
125
virtual
void
setDefaultOnNonWritingFields();
126
virtual
SbBool
setUpConnections(
SbBool
onOff,
SbBool
doItAlways =
FALSE
) ;
127
128
private
:
129
FieldSensorList m_fieldSensorList ;
130
// Sensors
131
132
SoFieldList
m_fieldList ;
133
// List of fields defined in this class
134
135
void
newAnimator(
SoGroup
*group,
SoLineSet
*line_set,
136
SoCoordinate3
*particle_coord,
SoCoordinate3
*particle_speed,
137
SoMFColor
*particle_color);
138
void
endAnimator(
SoGroup
*group,
SoLineSet
*line_set,
139
SoCoordinate3
*particle_coord,
SoCoordinate3
*particle_speed,
140
SoMFColor
*particle_color);
141
void
newFrame(
SoGroup
*frame,
int
frame_ind);
142
void
endFrame(
SoGroup
*frame,
int
frame_ind);
143
void
newLine(
SoGroup
*line,
int
line_ind);
144
void
endLine(
SoGroup
*line,
int
line_ind);
145
void
newParticle(
const
SbVec3f
&pos,
const
SbVec3f
&speed,
const
SbVec3f
&norm,
const
SbColor
*color,
int
ind);
146
// method to build the frames to be animated
147
148
int
m_numPoints;
149
150
} ;
151
152
/*----------------------------------------------------------------------------*/
153
154
#endif
/* _PO_STREAMLINEMOTION_ */
155
156
PoStreamParticleMotion.h
FALSE
#define FALSE
Possible value of SbBool.
Definition
SbBase.h:75
SoSFColor.h
SoSFFloat.h
SO_KIT_CATALOG_ENTRY_HEADER
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
Definition
SoSubKit.h:107
SO_KIT_HEADER
#define SO_KIT_HEADER(className)
Definition
SoSubKit.h:91
PoStreamLineMotion
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of stream...
Definition
PoStreamLineMotion.h:77
PoStreamLineMotion::lineColor
SoSFColor lineColor
Color of each streamlines.
Definition
PoStreamLineMotion.h:108
PoStreamLineMotion::lineWidth
SoSFFloat lineWidth
Convenience field to set the width line attribute of each streamline drawn.
Definition
PoStreamLineMotion.h:103
PoStreamLineMotion::PoStreamLineMotion
PoStreamLineMotion()
Constructor.
PoStreamLineMotion::particleColor
SoSFColor particleColor
Color of the particles that move along the streamline.
Definition
PoStreamLineMotion.h:114
PoStreamLineMotion::rebuild
virtual void rebuild()
Forces node-kit rebuilding.
PoStreamParticleMotion
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of particles a...
Definition
PoStreamParticleMotion.h:100
SbColor
Color vector class.
Definition
SbColor.h:82
SbVec3f
3D vector class.
Definition
SbVec.h:932
SoCoordinate3
Coordinate point node.
Definition
SoCoordinate3.h:95
SoFieldList
Maintains a list of pointers to fields.
Definition
SoFieldList.h:72
SoGroup
Base class for all group nodes.
Definition
SoGroup.h:122
SoLineSet
Polyline shape node.
Definition
SoLineSet.h:190
SoMFColor
Multiple-value field containing any number of RGB colors stored as three floats.
Definition
SoMFColor.h:98
SoSFColor
Field containing an RGB color.
Definition
SoSFColor.h:82
SoSFFloat
Field containing a floating-point value.
Definition
SoSFFloat.h:78
SbBool
int SbBool
Boolean type.
Definition
SbBase.h:87
MeshViz
3Ddata
PoStreamLineMotion.h
Generated by
1.9.8