Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoVertexFlagElement.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#ifndef _SO_VERTEX_FLAG_ELEMENT
24#define _SO_VERTEX_FLAG_ELEMENT
25
28
41
43
44 public:
48 static void reInit(SoState *, SoNode *);
52 static void setMarked(SoState *state, SoNode *node,
53 int32_t numFlags, const int32_t *flags);
54
58 static void setUnmarked(SoState *state, SoNode *node,
59 int32_t numFlags, const int32_t *flags);
60
64 static int getDefault() {return -1;}
65
70 {return getConstElement<SoVertexFlagElement>(state);}
71
75 int32_t getNumMarked() const { return numMarked; }
79 int32_t getNumUnmarked() const { return numUnmarked; }
80
86 const int32_t * getMarked() const { return marked; }
92 const int32_t * getUnmarked() const { return unmarked; }
93
97 virtual void print(FILE *fp) const;
98
99private:
100
102 virtual void init(SoState *state);
103
104 private:
105 // Initializes the SoVertexFlagElement class
106 static void initClass();
107 static void exitClass();
108
109 private:
110 int32_t numMarked, numUnmarked;
111 const int32_t * marked;
112 const int32_t * unmarked;
113
114 static int32_t markedDefault[1] ;
115 static int32_t unmarkedDefault[1] ;
116
117 virtual ~SoVertexFlagElement();
118
119 private:
120 void _init();
121};
122
123#endif /* _SO_VERTEX_FLAG_ELEMENT */
124
125
#define SoEXTENDER_Documented
static void init()
#define SO_ELEMENT_HEADER(className)
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
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
static const SoVertexFlagElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
virtual void print(FILE *fp) const
Prints element (for debugging).
static void setMarked(SoState *state, SoNode *node, int32_t numFlags, const int32_t *flags)
Sets the current flags in the state as marked.
const int32_t * getMarked() const
Returns the marked flags.
static void setUnmarked(SoState *state, SoNode *node, int32_t numFlags, const int32_t *flags)
Sets the current flags in the state as unmarked.
const int32_t * getUnmarked() const
Returns the unmarked flags.
static void reInit(SoState *, SoNode *)
int32_t getNumUnmarked() const
Returns the number of unmarked flags in an instance.
int32_t getNumMarked() const
Returns the number of marked flags in an instance.