Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PoStreamPointMotion.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_STREAMPOINTMOTION_
25#define _PO_STREAMPOINTMOTION_
26
27#include <MeshViz/3Ddata/PoStreamParticleMotion.h>
28#include <Inventor/fields/SoSFBool.h>
29
30
73
74 SO_KIT_HEADER(PoStreamPointMotion) ;
75
76 /* Define fields for new parts */
77 SO_KIT_CATALOG_ENTRY_HEADER(groupStreamPointMotion) ;
78
79
80 public:
81
86
90 virtual void rebuild();
91
92 /* Fields */
93
99
100 /*----------------------------------------------------------------------------*/
101 private:
102 static void initClass() ;
103 static void exitClass() ;
104
105 private:
106 virtual ~PoStreamPointMotion() ;
107 // Destructor
108
109 virtual void setDefaultOnNonWritingFields();
110 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
111
112 private:
113 FieldSensorList m_fieldSensorList ;
114 // Sensors
115
116 SoFieldList m_fieldList ;
117 // List of fields defined in this class
118
119 void newAnimator(SoGroup *group, SoLineSet *line_set,
120 SoCoordinate3 *particle_coord, SoCoordinate3 *particle_speed,
121 SoMFColor *particle_color);
122 void endAnimator(SoGroup *group, SoLineSet *line_set,
123 SoCoordinate3 *particle_coord, SoCoordinate3 *particle_speed,
124 SoMFColor *particle_color);
125 void newFrame(SoGroup *frame, int frame_ind);
126 void endFrame(SoGroup *frame, int frame_ind);
127 void newLine(SoGroup *line, int line_ind);
128 void endLine(SoGroup *line, int line_ind);
129 void newParticle(const SbVec3f &pos, const SbVec3f &speed, const SbVec3f &norm, const SbColor *color, int ind);
130 // method to build the frames to be animated
131
132 SoCoordinate3 *m_lineCoordinate;
133 SoMFColor *m_particleColor;
134 SoMFColor *m_lineColor;
135 int m_lineNumPoints;
136
137} ;
138
139/*----------------------------------------------------------------------------*/
140
141#endif /* _PO_STREAMPOINTMOTION_ */
142
143
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of particles a...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Animation of point parti...
virtual void rebuild()
Forces node-kit rebuilding.
PoStreamPointMotion()
Constructor.
SoSFFloat pointSize
Convenience field to set the point size attribute.
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 a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87