48#ifndef _SO_CLIP_PLANE_ELEMENT
49#define _SO_CLIP_PLANE_ELEMENT
119 static void initClass();
121 static void exitClass();
142 const SbPlane&
get(
int index, Space space)
const;
#define SoEXTENDER_Documented
#define TRUE
Possible value of SbBool.
#define SO_ELEMENT_HEADER(className)
List of generic (void *) pointers.
Abstract base class for each state element whose value may be accumulated when it is set.
Stores the current set of clipping planes, specified as SbPlanes.
int getNum() const
Returns the number of planes in an instance.
static int getMaxPlanes()
Returns the maximum number of concurrent clipping planes supported by current implementation.
virtual void print(FILE *fp) const
Prints element (for debugging).
const SbPlane & get(int index, SbBool inWorldSpace=TRUE) const
Returns the indexed plane an element as an SbPlane.
static const SoClipPlaneElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
static void add(SoState *state, SoNode *node, const SbPlane &plane)
Adds a clip plane to the current set in the state.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Overrides pop() method to free up planes that were added.
Abstract base class for all state elements.
Abstract base class for all database nodes.