Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoMeshCrossContour.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_MESHCROSSCONTOUR_
25#define _PO_MESHCROSSCONTOUR_
26
27#include <MeshViz/3Ddata/PoMesh3D.h>
28#include <Inventor/fields/SoSFPlane.h>
29#include <Inventor/SbBasic.h>
30
31class PbIndexedMesh3D;
37
38class SoMFInt32;
39class SoMFVec3f;
40class SoCoordinate3;
41class SoMaterial;
42
78
79 SO_KIT_HEADER(PoMeshCrossContour) ;
80
81 /* Define fields for new parts */
82 SO_KIT_CATALOG_ENTRY_HEADER(groupCrossContour) ;
83
84
85 public:
86
91
95 virtual void rebuild() ;
96
101 private:
102 static void initClass() ;
103 static void exitClass() ;
104
105 void indexedMeshCrossContour(PbIndexedMesh3D *mesh) ;
106 void tetrahedronMeshCrossContour(PbTetrahedronMesh3D *mesh) ;
107 void hexahedronMeshCrossContour(PbHexahedronMesh3D *mesh) ;
108 void cartGrid3DCrossContour(PbCartesianGrid3D *mesh);
109 void paralCartGrid3DCrossContour(PbParalCartesianGrid3D *mesh);
110 void regularGrid3DCrossContour(PbRegularCartesianGrid3D *mesh);
111
112 private:
113 // Destructor
114 virtual ~PoMeshCrossContour() ;
115 virtual void setDefaultOnNonWritingFields();
116 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
117 virtual void addElementsAllCaches() ;
118 virtual void preRebuild();
119
120 /*----------------------------------------------------------------------------*/
121 private:
122
123 FieldSensorList m_fieldSensorList ;
124 // Sensors
125
126 SoFieldList m_fieldList ;
127 // List of fields defined in this class
128
129 void tetrahedronMeshCrossContourInhColr(PbTetrahedronMesh3D *mesh, const float *v) ;
130 void tetrahedronMeshCrossContourMapColr(PbTetrahedronMesh3D *mesh, const float *v) ;
131
132 void hexahedronMeshCrossContourInhColr(PbHexahedronMesh3D *mesh, const float *v) ;
133 void hexahedronMeshCrossContourMapColr(PbHexahedronMesh3D *mesh, const float *v) ;
134
135 void cartGrid3DCrossContourInhColr(PbCartesianGrid3D *mesh, const float *v);
136 void cartGrid3DCrossContourMapColr(PbCartesianGrid3D *mesh, const float *v);
137
138 void paralCartGrid3DCrossContourInhColr(PbParalCartesianGrid3D *mesh, const float *v);
139 void paralCartGrid3DCrossContourMapColr(PbParalCartesianGrid3D *mesh, const float *v);
140
141 void regularGrid3DCrossContourInhColr(PbRegularCartesianGrid3D *mesh, const float *v);
142 void regularGrid3DCrossContourMapColr(PbRegularCartesianGrid3D *mesh, const float *v);
143
144 void updateCrossContourBindings();
145 void updateCrossContourTopology();
146 void updateCrossContourColors();
147 void updateUnStCrossContourShape(PbIndexedMesh3D *mesh);
148 void updateGrid3DCrossContourShape(PbCartesianGrid3D *mesh);
149
150} ;
151
152/*----------------------------------------------------------------------------*/
153
154#endif /* _PO_MESHCROSSCONTOUR _ */
155
156
157
<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 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 parallel carte...
<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 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 cross-...
virtual void rebuild()
Forces node-kit rebuilding.
SoSFPlane plane
Position of the cross section.
PoMeshCrossContour()
Constructor.
Coordinate point node.
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
Multiple-value field containing any number of three-dimensional vectors.
Definition SoMFVec3f.h:181
Surface material definition node.
Definition SoMaterial.h:173
Field containing a plane equation.
Definition SoSFPlane.h:82
int SbBool
Boolean type.
Definition SbBase.h:87