55#ifndef _SO_SWITCH_ELEMENT
56#define _SO_SWITCH_ELEMENT
85 {
set(state, index); }
#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.
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.
Element that stores the current switch index.
static int32_t get(SoState *state)
Returns current switch index from the state.
static int32_t getDefault()
Returns the default switch index.
virtual void init(SoState *state)
Initializes element.
virtual ~SoSwitchElement()
static void initClass()
Initializes the SoSwitchElement class.
static void set(SoState *state, SoNode *, int32_t index)
static void set(SoState *state, int32_t index)
Sets the current switch index in the state.