1#ifndef COIN_SOELEMENT_H
2#define COIN_SOELEMENT_H
36#include <Inventor/SbBasic.h>
37#include <Inventor/SoType.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;
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)
SoElement is the abstract base class for all elements.
Definition SoElement.h:43
void capture(SoState *const state) const
Definition SoElement.h:117
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition SoElement.h:110
static int classStackIndex
Definition SoElement.h:74
SoType typeId
Definition SoElement.h:86
int stackIndex
Definition SoElement.h:87
virtual SoElement * copyMatchInfo(void) const =0
int depth
Definition SoElement.h:92
static SoTypeList * stackToType
Definition SoElement.h:90
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition SoElement.h:123
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:56
The SoState class manages the Coin scene graph traversal state data.
Definition SoState.h:44
SbBool isCacheOpen(void) const
Definition SoState.h:92
const SoElement * getConstElement(const int stackindex) const
Definition SoState.h:85
SoElement * getElement(const int stackindex)
Definition SoState.cpp:228
The SoTypeList class is a container class for arrays of SoType objects.
Definition SoTypeList.h:39
The SoType class is the basis for the runtime type system in Coin.
Definition SoType.h:59