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>
43 virtual void init(SoState * state);
45 virtual void push(SoState * state);
46 virtual void pop(SoState * state,
const SoElement * prevTopElement);
60 virtual void print(FILE * file = stdout)
const;
70 void capture(SoState *
const state)
const;
93 static void cleanup(
void);
SoElement is the abstract base class for all elements.
Definition SoElement.h:34
void capture(SoState *const state) const
Definition SoElement.h:108
int getDepth(void) const
Definition SoElement.cpp:656
static SoType getClassTypeId(void)
Definition SoElement.cpp:359
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition SoElement.h:101
SoElement(void)
Definition SoElement.cpp:534
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 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:83
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:81
int getStackIndex(void) const
Definition SoElement.cpp:723
const SoType getTypeId(void) const
Definition SoElement.cpp:714
static int getClassStackIndex(void)
Definition SoElement.cpp:360
SoElement * getNextFree(void) const
Definition SoElement.cpp:768
static void initElements(void)
Definition SoElement.cpp:368
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:47
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