Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PoMeshSides.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_MESHSIDES_
25#define _PO_MESHSIDES_
26
29
31
35class PbPolarGrid2D;
38class PbIndexedMesh2D;
39
72class PoMeshSides : public PoMesh2D {
73
75
76 /* Define fields for new parts */
77 SO_KIT_CATALOG_ENTRY_HEADER(groupSides) ;
78
79
80 public:
81
86
90 virtual void rebuild() ;
91
100
101
102
116
122
123 /*----------------------------------------------------------------------------*/
124 private:
125 static void initClass() ;
126 static void exitClass() ;
127
128 void regularCartGridSides(PbRegularCartesianGrid2D *mesh);
129 void paralCartGridSides(PbParalCartesianGrid2D *mesh);
130 void cartGridSides(PbCartesianGrid2D *mesh);
131 void polarGridSides(PbPolarGrid2D *mesh);
132 void triangleSides(PbTriangleMesh2D *mesh);
133 void quadrangleSides(PbQuadrangleMesh2D *mesh);
134 void indexedSides(PbIndexedMesh2D *mesh);
135
136 private:
137 // Destructor
138 virtual ~PoMeshSides() ;
139 virtual void setDefaultOnNonWritingFields();
140 virtual void addElementsAllCaches() ;
141 virtual void preRebuild();
142 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
143
144 /*----------------------------------------------------------------------------*/
145 private:
146
147 FieldSensorList m_fieldSensorList ;
148 // Sensors
149
150 SoFieldList m_fieldList ;
151 // List of fields defined in this class
152
153
154
155 void regularCartGridSidesInhColr(PbRegularCartesianGrid2D *mesh, const float *z=0, float threshold_val=0) ;
156 void regularCartGridSidesAvergColr(PbRegularCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
157 void regularCartGridSidesMapColr(PbRegularCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
158 void regularCartGridSidesContColr(PbRegularCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
159
160 void paralCartGridSidesInhColr(PbParalCartesianGrid2D *mesh, const float *z=0, float threshold_val=0) ;
161 void paralCartGridSidesAvergColr(PbParalCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
162 void paralCartGridSidesMapColr(PbParalCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
163 void paralCartGridSidesContColr(PbParalCartesianGrid2D *mesh, const float *v, const float *z, float threshold_val=0);
164
165 void cartGridSidesInhColr (PbCartesianGrid2D *mesh, const float **z=0, float threshold_val=0) ;
166 void cartGridSidesMapColr (PbCartesianGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0) ;
167 void cartGridSidesAvergColr(PbCartesianGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0) ;
168 void cartGridSidesContColr (PbCartesianGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0) ;
169
170 void polarGridSidesInhColr (PbPolarGrid2D *mesh, const float **z=0, float threshold_val=0);
171 void polarGridSidesMapColr (PbPolarGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0);
172 void polarGridSidesAvergColr(PbPolarGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0);
173 void polarGridSidesContColr (PbPolarGrid2D *mesh, const float **v, const float **z=0, float threshold_val=0);
174
175 void triangleSidesInhColr (PbTriangleMesh2D *mesh, const float *z=0, float threshold_val=0);
176 void triangleSidesMapColr (PbTriangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
177 void triangleSidesAvergColr (PbTriangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
178 void triangleSidesContColr (PbTriangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
179
180 void quadrangleSidesInhColr (PbQuadrangleMesh2D *mesh, const float *z=0, float threshold_val=0);
181 void quadrangleSidesMapColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
182 void quadrangleSidesAvergColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
183 void quadrangleSidesContColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
184
185 void indexedSidesInhColr (PbIndexedMesh2D *mesh, const float *z=0, float threshold_val=0);
186 void indexedSidesMapColr (PbIndexedMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
187 void indexedSidesAvergColr (PbIndexedMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
188 void indexedSidesContColr (PbIndexedMesh2D *mesh, const float *v, const float *z, float threshold_val=0);
189} ;
190
191/*----------------------------------------------------------------------------*/
192
193#endif /* _PO_MESHSIDES_ */
194
#define FALSE
Possible value of SbBool.
Definition SbBase.h:75
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
Definition SoSubKit.h:107
#define SO_KIT_HEADER(className)
Definition SoSubKit.h:91
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a cartesian grid...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a surface mesh o...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a parallel carte...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a polar grid sur...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a surface mesh o...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a regular cartes...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a surface mesh o...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Base class for all surfa...
Definition PoMesh2D.h:53
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to build the sides...
Definition PoMeshSides.h:72
SoSFEnum thresholdType
Defines the type of threshold.
SoSFFloat thresholdValue
Defines the limit of the threshold of the mesh sides.
virtual void rebuild()
Forces node-kit rebuilding.
PoMeshSides()
Constructor.
ThresholdType
Type of threshold.
Definition PoMeshSides.h:95
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87