Open Inventor
Release 2024.2.0
Loading...
Searching...
No Matches
PoStreamTadpoleMotion.h
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_STREAMTADPOLEMOTION_
25
#define _PO_STREAMTADPOLEMOTION_
26
27
#include <MeshViz/3Ddata/PoStreamParticleMotion.h>
28
#include <Inventor/fields/SoSFFloat.h>
29
#include <Inventor/fields/SoSFColor.h>
30
90
class
PoStreamTadpoleMotion
:
public
PoStreamParticleMotion
{
91
92
SO_KIT_HEADER(
PoStreamTadpoleMotion
) ;
93
94
/* Define fields for new parts */
95
SO_KIT_CATALOG_ENTRY_HEADER(groupStreamTadpoleMotion) ;
96
97
98
public
:
99
103
PoStreamTadpoleMotion
();
104
108
virtual
void
rebuild
();
109
113
SoSFFloat
width
;
114
118
SoSFFloat
lengthFactor
;
119
123
SoSFColor
backColor
;
124
129
SoSFColor
particleColor
;
130
131
/*----------------------------------------------------------------------------*/
132
private
:
133
static
void
initClass() ;
134
static
void
exitClass() ;
135
136
private
:
137
// Destructor
138
virtual
~PoStreamTadpoleMotion
() ;
139
140
// Methods
141
virtual
void
setDefaultOnNonWritingFields();
142
virtual
SbBool
setUpConnections(
SbBool
onOff,
SbBool
doItAlways = FALSE) ;
143
144
private
:
145
// Sensors
146
FieldSensorList m_fieldSensorList ;
147
148
// List of fields defined in this class
149
SoFieldList
m_fieldList ;
150
151
// method to build the frames to be animated
152
void
newAnimator(
SoGroup
*group,
SoLineSet
*line_set,
153
SoCoordinate3
*particle_coord,
SoCoordinate3
*particle_speed,
154
SoMFColor
*particle_color);
155
void
endAnimator(
SoGroup
*group,
SoLineSet
*line_set,
156
SoCoordinate3
*particle_coord,
SoCoordinate3
*particle_speed,
157
SoMFColor
*particle_color);
158
void
newFrame(
SoGroup
*frame,
int
frame_ind);
159
void
endFrame(
SoGroup
*frame,
int
frame_ind);
160
void
newLine(
SoGroup
*line,
int
line_ind);
161
void
endLine(
SoGroup
*line,
int
line_ind);
162
void
newParticle(
const
SbVec3f
&pos,
const
SbVec3f
&speed,
const
SbVec3f
&norm,
const
SbColor
*color,
int
ind);
163
164
int
m_lineNumPoints;
165
SoCoordinate3
*m_lineCoordinate;
166
167
} ;
168
169
/*----------------------------------------------------------------------------*/
170
171
#endif
/* _PO_STREAMTADPOLEMOTION_ */
172
173
PoStreamParticleMotion
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of particles a...
Definition
PoStreamParticleMotion.h:100
PoStreamTadpoleMotion
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of tadpole par...
Definition
PoStreamTadpoleMotion.h:90
PoStreamTadpoleMotion::backColor
SoSFColor backColor
Background color applied on the end points of each segment.
Definition
PoStreamTadpoleMotion.h:123
PoStreamTadpoleMotion::lengthFactor
SoSFFloat lengthFactor
Length factor applied to the velocity.
Definition
PoStreamTadpoleMotion.h:118
PoStreamTadpoleMotion::particleColor
SoSFColor particleColor
Color used at the middle point of each segment.
Definition
PoStreamTadpoleMotion.h:129
PoStreamTadpoleMotion::width
SoSFFloat width
Width of each tadpole segment.
Definition
PoStreamTadpoleMotion.h:113
PoStreamTadpoleMotion::rebuild
virtual void rebuild()
Forces node-kit rebuilding.
PoStreamTadpoleMotion::PoStreamTadpoleMotion
PoStreamTadpoleMotion()
Constructor.
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
PoStreamTadpoleMotion.h
Generated by
1.9.8