Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
PoMeshElement.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : J-Michel Godinaud (Feb 1998)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _PO_MESH_ELEMENT_
26#define _PO_MESH_ELEMENT_
27
28
29#include <Inventor/elements/SoReplacedElement.h>
30
31
32class PbMesh1D;
33class PbMesh2D;
34class PbMesh3D;
35class PbMesh;
36
41
42 SO_ELEMENT_HEADER(PoMeshElement);
43
44 public:
45 // set the current mesh
46 static void set(SoState *state, SoNode *node, const PbMesh1D *mesh);
47 static void set(SoState *state, SoNode *node, const PbMesh2D *mesh);
48 static void set(SoState *state, SoNode *node, const PbMesh3D *mesh);
49
50 // return the current mesh from the state
51 static const PbMesh *getMesh(SoState *state);
52 static const PbMesh1D *getMesh1D(SoState *state);
53 static const PbMesh2D *getMesh2D(SoState *state);
54 static const PbMesh3D *getMesh3D(SoState *state);
55
56 private:
57 // Initializes the class
58 static void initClass();
59 static void exitClass() ;
60
61 private:
62 const PbMesh *m_mesh;
63
64 virtual ~PoMeshElement();
65
66 enum MeshDim {
67 MESH_1D,
68 MESH_2D,
69 MESH_3D
70 };
71
72 MeshDim m_meshDim;
73 virtual void commonInit();
74
76 virtual void init(SoState *state);
77};
78/*----------------------------------------------------------------------------*/
79
80#endif // _PO_MESH_ELEMENT_
81
82
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mono...
Definition PbMesh1D.h:42
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract surf...
Definition PbMesh2D.h:54
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract volu...
Definition PbMesh3D.h:51
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mesh...
Definition PbMesh.h:84
static void set(SoState *state, SoNode *node, const PbMesh1D *mesh)
static const PbMesh3D * getMesh3D(SoState *state)
static const PbMesh * getMesh(SoState *state)
static void set(SoState *state, SoNode *node, const PbMesh3D *mesh)
static const PbMesh1D * getMesh1D(SoState *state)
static void set(SoState *state, SoNode *node, const PbMesh2D *mesh)
static const PbMesh2D * getMesh2D(SoState *state)
Abstract base class for all database nodes.
Definition SoNode.h:145
Abstract base class for each state element whose value is replaced whenever it is set.
Traversal state.
Definition SoState.h:74