Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PoMeshFilled.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_MESHFILLED_
25#define _PO_MESHFILLED_
26
29
33class PbPolarGrid2D;
36class PbIndexedMesh2D;
37class SoNormal;
38
83class PoMeshFilled : public PoMesh2D {
84
86
87 /* Define fields for new parts */
88 SO_KIT_CATALOG_ENTRY_HEADER(groupFilled) ;
89
90
91 public:
92
97
113
114
118 virtual void rebuild() ;
119
120 /*----------------------------------------------------------------------------*/
121 private:
122 static void initClass() ;
123 static void exitClass() ;
124
125 void regularCartGridFilled(PbRegularCartesianGrid2D *mesh);
126 void paralCartGridFilled(PbParalCartesianGrid2D *mesh);
127 void cartGridFilled(PbCartesianGrid2D *mesh) ;
128 void polarGridFilled(PbPolarGrid2D *mesh) ;
129 void triangleMeshFilled(PbTriangleMesh2D *mesh) ;
130 void quadrangleMeshFilled(PbQuadrangleMesh2D *mesh) ;
131 void indexedMeshFilled(PbIndexedMesh2D *mesh) ;
132
133 private:
134 // Methods
135 // Destructor
136 virtual ~PoMeshFilled() ;
137 virtual void setDefaultOnNonWritingFields();
138 virtual void addElementsAllCaches() ;
139 virtual void preRebuild();
140
141 virtual void insertDefaultShapeHints();
142 SoNormal* m_overallNormal;
143
144
145 /*----------------------------------------------------------------------------*/
146 private:
147
148
149
150 void regularCartGridFilledInhColr (PbRegularCartesianGrid2D *mesh, const float *z=0) ;
151 void regularCartGridFilledMapColr (PbRegularCartesianGrid2D *mesh, const float *v, const float *z=0) ;
152 void regularCartGridFilledAvergColr(PbRegularCartesianGrid2D *mesh, const float *v, const float *z=0) ;
153 void regularCartGridFilledContColr (PbRegularCartesianGrid2D *mesh, const float *v, const float *z=0) ;
154 void regularCartGridFilledTexContColr (PbRegularCartesianGrid2D *mesh, const float *v, const float *z=0) ;
155
156 void paralCartGridFilledInhColr (PbParalCartesianGrid2D *mesh, const float *z=0) ;
157 void paralCartGridFilledMapColr (PbParalCartesianGrid2D *mesh, const float *v, const float *z=0) ;
158 void paralCartGridFilledAvergColr(PbParalCartesianGrid2D *mesh, const float *v, const float *z=0) ;
159 void paralCartGridFilledContColr (PbParalCartesianGrid2D *mesh, const float *v, const float *z=0) ;
160 void paralCartGridFilledTexContColr (PbParalCartesianGrid2D *mesh, const float *v, const float *z=0) ;
161
162 void cartGridFilledInhColr (PbCartesianGrid2D *mesh, const float *z=0) ;
163 void cartGridFilledMapColr (PbCartesianGrid2D *mesh, const float *v, const float *z=0) ;
164 void cartGridFilledAvergColr(PbCartesianGrid2D *mesh, const float *v, const float *z=0) ;
165 void cartGridFilledContColr (PbCartesianGrid2D *mesh, const float *v, const float *z=0) ;
166 void cartGridFilledTexContColr (PbCartesianGrid2D *mesh, const float *v, const float *z=0) ;
167
168 void polarGridFilledInhColr (PbPolarGrid2D *mesh, const float *z=0) ;
169 void polarGridFilledMapColr (PbPolarGrid2D *mesh, const float *v, const float *z=0) ;
170 void polarGridFilledAvergColr(PbPolarGrid2D *mesh, const float *v, const float *z=0) ;
171 void polarGridFilledContColr (PbPolarGrid2D *mesh, const float *v, const float *z=0) ;
172 void polarGridFilledTexContColr (PbPolarGrid2D *mesh, const float *v, const float *z=0) ;
173
174 void triangleMeshFilledInhColr (PbTriangleMesh2D *mesh, const float *z=0) ;
175 void triangleMeshFilledMapColr (PbTriangleMesh2D *mesh, const float *v, const float *z=0) ;
176 void triangleMeshFilledAvergColr (PbTriangleMesh2D *mesh, const float *v, const float *z=0) ;
177 void triangleMeshFilledContColr (PbTriangleMesh2D *mesh, const float *v, const float *z=0) ;
178 void triangleMeshFilledTexContColr (PbTriangleMesh2D *mesh, const float *v, const float *z=0) ;
179
180 void quadrangleMeshFilledInhColr (PbQuadrangleMesh2D *mesh, const float *z=0) ;
181 void quadrangleMeshFilledMapColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z=0) ;
182 void quadrangleMeshFilledAvergColr(PbQuadrangleMesh2D *mesh, const float *v, const float *z=0) ;
183 void quadrangleMeshFilledContColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z=0) ;
184 void quadrangleMeshFilledTexContColr (PbQuadrangleMesh2D *mesh, const float *v, const float *z=0) ;
185
186 void indexedMeshFilledInhColr (PbIndexedMesh2D *mesh, const float *z=0) ;
187 void indexedMeshFilledMapColr (PbIndexedMesh2D *mesh, const float *v, const float *z=0) ;
188 void indexedMeshFilledAvergColr(PbIndexedMesh2D *mesh, const float *v, const float *z=0) ;
189 void indexedMeshFilledContColr (PbIndexedMesh2D *mesh, const float *v, const float *z=0) ;
190 void indexedMeshFilledTexContColr (PbIndexedMesh2D *mesh, const float *v, const float *z=0) ;
191
192 // Sensors
193 FieldSensorList m_fieldSensorList;
194
195 // List of fields defined in this class
196 SoFieldList m_fieldList;
197
198} ;
199
200/*----------------------------------------------------------------------------*/
201
202#endif /* _PO_MESHFILLED_ */
203
#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> Filled representation of...
virtual void rebuild()
Forces node-kit rebuilding.
PoMeshFilled()
Constructor.
SoSFBool useOverallNormal
Indicates if a single overall normal vector can be used to render this mesh representation.
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Node that defines surface normals for shapes.
Definition SoNormal.h:101
Field containing a single Boolean value.
Definition SoSFBool.h:79