1 #ifndef COIN_SOELEMENT_H 2 #define COIN_SOELEMENT_H 36 #include <Inventor/SbBasic.h> 38 #include <Inventor/misc/SoState.h> 45 static void initClass(
void);
47 static SoType getClassTypeId(
void);
48 static int getClassStackIndex(
void);
49 const SoType getTypeId(
void)
const;
50 int getStackIndex(
void)
const;
52 virtual void init(
SoState * state);
54 virtual void push(
SoState * state);
57 virtual SbBool matches(
const SoElement * element)
const = 0;
58 virtual SoElement * copyMatchInfo(
void)
const = 0;
60 static void initElements(
void);
62 static int getNumStackIndices(
void);
63 static SoType getIdFromStackIndex(
const int stackIndex);
65 void setDepth(
const int depth);
67 int getDepth(
void)
const;
69 virtual void print(FILE * file = stdout)
const;
77 static const SoElement * getConstElement(
SoState *
const state,
const int stackIndex);
79 void capture(
SoState *
const state)
const;
81 virtual void captureThis(
SoState * state)
const;
83 void setTypeId(
const SoType typeId);
84 void setStackIndex(
const int index);
89 static int createStackIndex(
const SoType id);
102 static void cleanup(
void);
111 const int stackIndex)
124 const int stackIndex)
131 #endif // !COIN_SOELEMENT_H static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:123
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:110
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
SoType typeId
Definition: SoElement.h:86
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
The SoTypeList class is a container class for arrays of SoType objects.
Definition: SoTypeList.h:39
int stackIndex
Definition: SoElement.h:87
virtual void captureThis(SoState *state) const
Definition: SoElement.cpp:687
SbBool isCacheOpen(void) const
Definition: SoState.h:92
void capture(SoState *const state) const
Definition: SoElement.h:117
SoElement * getElement(const int stackindex)
Definition: SoState.cpp:228
static SoTypeList * stackToType
Definition: SoElement.h:90
const SoElement * getConstElement(const int stackindex) const
Definition: SoState.h:85
int depth
Definition: SoElement.h:92
static int classStackIndex
Definition: SoElement.h:74
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:59