Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
MoMeshBaseRepresentation.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-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _MO_MESHBASEREPRESENTATION_
24#define _MO_MESHBASEREPRESENTATION_
25
28
31
32#ifdef _WIN32
33#pragma warning(push)
34#pragma warning(disable:4251)
35#endif
36
37class MxNodeSensor;
38
51
53
54 public:
55 virtual SbBool affectsState() const;
56
57 private:
58 static void initClass() ;
59 static void exitClass() ;
60
61 virtual void fieldHasChanged(SoField* field);
62
63 virtual bool isSynchronizingContentOnly() { return TRUE; }
64
65 private:
66 virtual void write(SoWriteAction *action);
67 virtual void doAction(SoAction *action);
68
69 private:
71 virtual ~MoMeshBaseRepresentation() ;
72
73 // The separator containing the generated scene graph
74 SoSeparator *m_group;
75
76 virtual SoChildList *getChildren() const { return m_childList; }
77
78 virtual void clear();
79
80 // indicates if any fields has been modified (linked to a node sensor)
81 bool isModified() const;
82
83private:
84 // Implements a hidden list of children
85 SoChildList *m_childList;
86
87 // Internal mechanism used to detect that the node has changed.
88 bool m_subSceneDirty;
89
90};
91
92#ifdef _WIN32
93#pragma warning(pop)
94#endif
95
96#endif /* _MO_MESHBASEREPRESENTATION_ */
97
98
99
#define MESHVIZXLM_DMAP_API
#define TRUE
Possible value of SbBool.
Definition SbBase.h:77
void clear()
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Utility class that provi...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
virtual SbBool affectsState() const
Returns TRUE if a node has an effect on the state during traversal.
Abstract base class for all actions.
Definition SoAction.h:132
Base class for all fields.
Definition SoField.h:234
Group node that saves and restores traversal state.
Writes a scene graph to a file.
int SbBool
Boolean type.
Definition SbBase.h:87
SoChildList(SoNode *parentNode, int size)
void getChildren(int &numIndices, const int *&indices)