50#ifndef _SO_SWITCH_ELEMENT
51#define _SO_SWITCH_ELEMENT
53#include <Inventor/elements/SoInt32Element.h>
84 {
set(state, index); }
100 virtual void init(
SoState *state);
104 static void initClass();
105 static void exitClass();
Stores a single int32_t, int, or enum value.
Abstract base class for all database nodes.
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.
static SoType getClassTypeId()
Returns the type identifier for this class.
static int getClassStackIndex()
Returns the stack id for this element.
static void set(SoState *state, SoNode *, int32_t index)
Sets the current switch index in the state.
static void set(SoState *state, int32_t index)
Sets the current switch index in the state.