Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoEdgeFlagElement.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#ifndef _SO_EDGE_FLAG_ELEMENT
24#define _SO_EDGE_FLAG_ELEMENT
25
26#include <Inventor/fields/SoMFInt32.h>
27#include <Inventor/elements/SoReplacedElement.h>
28
40SoEXTENDER_Documented class SoEdgeFlagElement : public SoReplacedElement {
41
42 SO_ELEMENT_HEADER(SoEdgeFlagElement);
43
44 public:
48 static void setMarked(SoState *state, SoNode *node,
49 int32_t numFlags, const int32_t *flags);
50
54 static void setUnmarked(SoState *state, SoNode *node,
55 int32_t numFlags, const int32_t *flags);
56
60 static int getDefault() {return -1;}
61
65 static const SoEdgeFlagElement * getInstance(SoState *state)
66 {return getConstElement<SoEdgeFlagElement>(state);}
67
71 int32_t getNumMarked() const { return numMarked; }
75 int32_t getNumUnmarked() const { return numUnmarked; }
76
82 const int32_t * getMarked() const { return marked; }
88 const int32_t * getUnmarked() const { return unmarked; }
89
93 virtual void print(FILE *fp) const;
94
95private:
96
98 virtual void init(SoState *state);
99
100 private:
101 // Initializes the SoEdgeFlagElement class
102 static void initClass();
103 static void exitClass();
104
105 static void reInit(SoState *, SoNode *);
106
107 private:
108 int32_t numMarked, numUnmarked;
109 const int32_t * marked;
110 const int32_t * unmarked;
111
112 static int32_t markedDefault[1] ;
113 static int32_t unmarkedDefault[1] ;
114
115 virtual ~SoEdgeFlagElement();
116
117 private:
118 void _init();
119};
120
121#endif /* _SO_EDGE_FLAG_ELEMENT */
122
123
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the edge ...
int32_t getNumMarked() const
Returns the number of marked flags in an instance.
const int32_t * getUnmarked() const
Returns the unmarked flags.
static int getDefault()
Returns the default values.
int32_t getNumUnmarked() const
Returns the number of unmarked flags in an instance.
const int32_t * getMarked() const
Returns the marked flags.
static void setMarked(SoState *state, SoNode *node, int32_t numFlags, const int32_t *flags)
Sets the current flags in the state as marked.
virtual void print(FILE *fp) const
Prints element (for debugging).
static const SoEdgeFlagElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static void setUnmarked(SoState *state, SoNode *node, int32_t numFlags, const int32_t *flags)
Sets the current flags in the state as unmarked.
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