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:631
static SoType getClassTypeId(void)
Definition SoElement.cpp:344
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition SoElement.h:101
SoElement(void)
Definition SoElement.cpp:509
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:560
void setTypeId(const SoType typeId)
Definition SoElement.cpp:675
virtual SbBool matches(const SoElement *element) const =0
Definition SoElement.cpp:584
static void initClass(void)
Definition SoElement.cpp:483
SoElement * getNextInStack(void) const
Definition SoElement.cpp:734
static SoType getIdFromStackIndex(const int stackIndex)
Definition SoElement.cpp:612
virtual SoElement * copyMatchInfo(void) const =0
int depth
Definition SoElement.h:83
virtual void init(SoState *state)
Definition SoElement.cpp:528
virtual void push(SoState *state)
Definition SoElement.cpp:545
static int createStackIndex(const SoType id)
Definition SoElement.cpp:717
virtual void print(FILE *file=stdout) const
Definition SoElement.cpp:570
void setStackIndex(const int index)
Definition SoElement.cpp:708
void setDepth(const int depth)
Definition SoElement.cpp:622
static SoTypeList * stackToType
Definition SoElement.h:81
int getStackIndex(void) const
Definition SoElement.cpp:698
const SoType getTypeId(void) const
Definition SoElement.cpp:689
static int getClassStackIndex(void)
Definition SoElement.cpp:345
SoElement * getNextFree(void) const
Definition SoElement.cpp:743
static void initElements(void)
Definition SoElement.cpp:353
virtual void captureThis(SoState *state) const
Definition SoElement.cpp:663
static int getNumStackIndices(void)
Definition SoElement.cpp:602
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