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)
122 #endif // !COIN_SOELEMENT_H
int getLength(void) const
Definition: SbPList.h:94
virtual void print(FILE *file=stdout) const
Definition: SoElement.cpp:570
static SoType badType(void)
Definition: SoType.cpp:664
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SoElement * getNextFree(void) const
Definition: SoElement.cpp:743
SoElement * getNextInStack(void) const
Definition: SoElement.cpp:734
static void initClass(void)
Definition: SoListenerPositionElement.cpp:62
int stackIndex
Definition: SoElement.h:78
void setStackIndex(const int index)
Definition: SoElement.cpp:708
SoType typeId
Definition: SoElement.h:77
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:114
static void initClass(void)
Definition: SoOverrideElement.cpp:181
SoElement * getElement(const int stackindex)
Definition: SoState.cpp:218
static void initClass(void)
Definition: SoElement.cpp:483
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:50
static int classStackIndex
Definition: SoElement.h:65
const char * getString(void) const
Definition: SbName.cpp:278
int getDepth(void) const
Definition: SoElement.cpp:631
const SoElement * getConstElement(const int stackindex) const
Definition: SoState.h:76
SoElement is the abstract base class for all elements.
Definition: SoElement.h:34
static void initClass(void)
Definition: SoListenerOrientationElement.cpp:63
static SoType getClassTypeId(void)
Definition: SoElement.cpp:344
static SoElement * getElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:101
static void initClass(void)
Definition: SoListenerDopplerElement.cpp:66
The SoTypeList class is a container class for arrays of SoType objects.
Definition: SoTypeList.h:30
virtual void push(SoState *state)
Definition: SoElement.cpp:545
virtual void captureThis(SoState *state) const
Definition: SoElement.cpp:663
void capture(SoState *const state) const
Definition: SoElement.h:108
void setTypeId(const SoType typeId)
Definition: SoElement.cpp:675
int depth
Definition: SoElement.h:83
virtual SbBool matches(const SoElement *element) const =0
Definition: SoElement.cpp:584
static void initElements(void)
Definition: SoElement.cpp:353
static const SoType createType(const SoType parent, const SbName name, const instantiationMethod method=(instantiationMethod) NULL, const uint16_t data=0)
Definition: SoType.cpp:256
static int createStackIndex(const SoType id)
Definition: SoElement.cpp:717
virtual void init(SoState *state)
Definition: SoElement.cpp:528
virtual void pop(SoState *state, const SoElement *prevTopElement)
Definition: SoElement.cpp:560
static int getClassStackIndex(void)
Definition: SoElement.cpp:345
const SoType getTypeId(void) const
Definition: SoElement.cpp:689
void append(const SoType type)
Definition: SoTypeList.cpp:62
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SbName getName(void) const
Definition: SoType.cpp:628
int getStackIndex(void) const
Definition: SoElement.cpp:698
static int getNumStackIndices(void)
Definition: SoElement.cpp:602
static SoTypeList * stackToType
Definition: SoElement.h:81
virtual SoElement * copyMatchInfo(void) const =0
virtual ~SoElement()
Definition: SoElement.cpp:518
SoElement(void)
Definition: SoElement.cpp:509
void setDepth(const int depth)
Definition: SoElement.cpp:622
SbBool isCacheOpen(void) const
Definition: SoState.h:83
static SoType getIdFromStackIndex(const int stackIndex)
Definition: SoElement.cpp:612
SbBool canCreateInstance(void) const
Definition: SoType.cpp:786
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18