Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PoStreamLineMotion.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_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
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
91
95 virtual void rebuild();
96
97 /* Fields */
98
104
109
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
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of stream...
SoSFColor lineColor
Color of each streamlines.
SoSFFloat lineWidth
Convenience field to set the width line attribute of each streamline drawn.
PoStreamLineMotion()
Constructor.
SoSFColor particleColor
Color of the particles that move along the streamline.
virtual void rebuild()
Forces node-kit rebuilding.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of particles a...
Color vector class.
Definition SbColor.h:82
3D vector class.
Definition SbVec.h:932
Coordinate point node.
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Base class for all group nodes.
Definition SoGroup.h:122
Polyline shape node.
Definition SoLineSet.h:190
Multiple-value field containing any number of RGB colors stored as three floats.
Definition SoMFColor.h:98
Field containing an RGB color.
Definition SoSFColor.h:82
Field containing a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87