Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoMeshLevelSurf.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_MESHLevelSurf_
25#define _PO_MESHLevelSurf_
26
27#include <MeshViz/3Ddata/PoMesh3D.h>
28
29
30class PbIndexedMesh3D;
33class PbGrid3D;
34
35class SoMFInt32;
36class SbVec3f;
37
92class PoMeshLevelSurf : public PoMesh3D {
93
94 SO_KIT_HEADER(PoMeshLevelSurf);
95
96 /* Define fields for new parts */
97 SO_KIT_CATALOG_ENTRY_HEADER(groupLevelSurf);
98
99 public:
100
105
109 virtual void rebuild();
110
118
119 /* Fields */
120
134
139
146
147 /*----------------------------------------------------------------------------*/
148 private:
149
150 static void initClass();
151 static void exitClass() ;
152
153 const float *getIsosurfDataSet();
154 float getIsosurfValue() const;
155 int getSurfOrientation() { return surfOrientation.getValue(); }
156
157 private:
158
159 // Methods
160 virtual void setDefaultOnNonWritingFields();
161 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE);
162 virtual void addElementsAllCaches();
163 virtual void preRebuild();
164 // Destructor
165 virtual ~PoMeshLevelSurf();
166
167 virtual int getIsosurfDataSetId() const;
168 virtual int getIsosurfDataSetIndex() const;
169 /*----------------------------------------------------------------------------*/
170 private:
171
172 // Sensors
173 FieldSensorList m_fieldSensorList;
174
175 // List of fields defined in this class
176 SoFieldList m_fieldList;
177
178 uint32_t m_isoDataSetId; // State of the data set used by the last rebuilt
179};
180
181/*----------------------------------------------------------------------------*/
182
183#endif /* _PO_MESHLEVELSURF_ */
184
185
186
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract grid...
Definition PbGrid3D.h:44
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a mesh of hexahe...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a volume mesh of...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a mesh of tetrah...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Base class for all volum...
Definition PoMesh3D.h:53
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of level ...
SoSFEnum surfOrientation
Orientation of the level surface.
SoSFFloat levelValue
Value of the level surface.
virtual void rebuild()
Forces node-kit rebuilding.
SoSFInt32 valuesIndexForLevel
Index of the set of value used to compute the level surface.
PoMeshLevelSurf()
Constructor.
SurfOrientation
Type of level surface orientation.
3D vector class.
Definition SbVec.h:932
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Multiple-value field containing any number of int32_t integers.
Definition SoMFInt32.h:88
Field containing an enumerated value.
Definition SoSFEnum.h:89
int getValue() const
Returns this field's value.
Definition SoSFEnum.h:91
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a int32_t integer.
Definition SoSFInt32.h:80
int SbBool
Boolean type.
Definition SbBase.h:87