1#ifndef COIN_SOELEMENT_H
2#define COIN_SOELEMENT_H
27#include <Inventor/SbBasic.h>
28#include <Inventor/SoType.h>
29#include <Inventor/misc/SoState.h>
36 static void initClass(
void);
38 static SoType getClassTypeId(
void);
39 static int getClassStackIndex(
void);
40 const SoType getTypeId(
void)
const;
41 int getStackIndex(
void)
const;
43 virtual void init(
SoState * state);
45 virtual void push(
SoState * state);
48 virtual SbBool matches(
const SoElement * element)
const = 0;
51 static void initElements(
void);
53 static int getNumStackIndices(
void);
54 static SoType getIdFromStackIndex(
const int stackIndex);
56 void setDepth(
const int depth);
58 int getDepth(
void)
const;
60 virtual void print(FILE * file = stdout)
const;
68 static const SoElement * getConstElement(
SoState *
const state,
const int stackIndex);
70 void capture(
SoState *
const state)
const;
72 virtual void captureThis(
SoState * state)
const;
74 void setTypeId(
const SoType typeId);
75 void setStackIndex(
const int index);
80 static int createStackIndex(
const SoType id);
93 static void cleanup(
void);
102 const int stackIndex)
115 const int stackIndex)
SoElement is the abstract base class for all elements.
Definition SoElement.h:34
void capture(SoState *const state) const
Definition SoElement.h:108
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition SoElement.h:101
static int classStackIndex
Definition SoElement.h:65
SoType typeId
Definition SoElement.h:77
int stackIndex
Definition SoElement.h:78
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition SoElement.h:114
virtual SoElement * copyMatchInfo(void) const =0
int depth
Definition SoElement.h:83
static SoTypeList * stackToType
Definition SoElement.h:81
virtual void captureThis(SoState *state) const
Definition SoElement.cpp:688
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
The SoState class manages the Coin scenegraph traversal state data.
Definition SoState.h:35
SbBool isCacheOpen(void) const
Definition SoState.h:83
const SoElement * getConstElement(const int stackindex) const
Definition SoState.h:76
SoElement * getElement(const int stackindex)
Definition SoState.cpp:218
The SoTypeList class is a container class for arrays of SoType objects.
Definition SoTypeList.h:30
The SoType class is the basis for the run-time type system in Coin.
Definition SoType.h:50