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>
52 virtual void init(SoState * state);
54 virtual void push(SoState * state);
55 virtual void pop(SoState * state,
const SoElement * prevTopElement);
69 virtual void print(FILE * file = stdout)
const;
79 void capture(SoState *
const state)
const;
101 friend class SoState;
102 static void cleanup(
void);
SoElement is the abstract base class for all elements.
Definition SoElement.h:43
void capture(SoState *const state) const
Definition SoElement.h:117
int getDepth(void) const
Definition SoElement.cpp:656
static SoType getClassTypeId(void)
Definition SoElement.cpp:369
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition SoElement.h:110
SoElement(void)
Definition SoElement.cpp:534
static int classStackIndex
Definition SoElement.h:74
SoType typeId
Definition SoElement.h:86
int stackIndex
Definition SoElement.h:87
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition SoElement.h:123
virtual void pop(SoState *state, const SoElement *prevTopElement)
Definition SoElement.cpp:585
void setTypeId(const SoType typeId)
Definition SoElement.cpp:700
virtual SbBool matches(const SoElement *element) const =0
Definition SoElement.cpp:609
static void initClass(void)
Definition SoElement.cpp:507
SoElement * getNextInStack(void) const
Definition SoElement.cpp:759
static SoType getIdFromStackIndex(const int stackIndex)
Definition SoElement.cpp:637
virtual SoElement * copyMatchInfo(void) const =0
int depth
Definition SoElement.h:92
virtual void init(SoState *state)
Definition SoElement.cpp:553
virtual void push(SoState *state)
Definition SoElement.cpp:570
static int createStackIndex(const SoType id)
Definition SoElement.cpp:742
virtual void print(FILE *file=stdout) const
Definition SoElement.cpp:595
void setStackIndex(const int index)
Definition SoElement.cpp:733
void setDepth(const int depth)
Definition SoElement.cpp:647
static SoTypeList * stackToType
Definition SoElement.h:90
int getStackIndex(void) const
Definition SoElement.cpp:723
const SoType getTypeId(void) const
Definition SoElement.cpp:714
static int getClassStackIndex(void)
Definition SoElement.cpp:370
SoElement * getNextFree(void) const
Definition SoElement.cpp:768
static void initElements(void)
Definition SoElement.cpp:378
virtual void captureThis(SoState *state) const
Definition SoElement.cpp:688
static int getNumStackIndices(void)
Definition SoElement.cpp:627
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
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