55 #ifndef _SO_COMPLEXITY_TYPE_ELEMENT
56 #define _SO_COMPLEXITY_TYPE_ELEMENT
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Element that stores the current complexity type.
static Type get(SoState *state)
Returns current complexity type from the state.
static void initClass()
Initializes the SoComplexityTypeElement class.
virtual void print(FILE *fp) const
Prints element (for debugging)
Type
These are the available complexity types:
@ OBJECT_SPACE
Complexity computed in object space.
@ SCREEN_SPACE
Complexity computed in screen space.
static void set(SoState *state, Type type)
Sets the current complexity type in the state.
virtual void init(SoState *state)
Initializes element.
static Type getDefault()
Returns the default complexity type.
static void set(SoState *state, SoNode *, Type type)
virtual ~SoComplexityTypeElement()
Subclasses store a single int32_t, int, or enum value.
static int32_t get(int stackIndex, SoState *state)
Get value.
static void set(int stackIndex, SoState *state, int32_t value)
Set value.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.