74#define SO_STATE_GET_CONST_ELEMENT(stackIndex)\
75 return stack[stackIndex];
101 {
return stack[stackIndex]; }
120 {
return (stack[stackIndex] != NULL); }
136 {
return stack[stackIndex]; }
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Abstract base class for all actions.
This is the abstract base class for all state elements.
An SoState collects and holds state while traversing a scene graph.
int getDepth() const
Returns current depth of state.
void push()
Pushes (saves) the current state until a pop() restores it.
void setCacheOpen(bool flag)
Sets/returns flag that indicates whether a cache is open.
SoAction * getAction() const
Returns the action instance the state is part of.
bool isElementEnabled(int stackIndex) const
Returns TRUE if element with given stack index is enabled in state.
SoElement * getElement(int stackIndex)
Returns a writable instance of the element on the top of the stack with the given index.
void print(FILE *fp)
Prints state to file (for debugging)
const SoElement * getConstElement(int stackIndex) const
Returns the top (read-only) instance of the given element stack.
SoElement * getElementNoPush(int stackIndex) const
Internal-only, dangerous method that returns a writeable element without checking for state depth and...
SoState(SoAction *action, const SoTypeList &enabledElements)
Constructor.
void pop()
Pops the state, restoring the state to just before the last push().
Maintains a list of SoTypes.