Open Inventor Reference
SoSwitchElement Class Reference

Element that stores the current switch index. More...

#include <Inventor/elements/SoSwitchElement.h>

Inheritance diagram for SoSwitchElement:
SoInt32Element SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.

Static Public Member Functions

static void set (SoState *state, int32_t index)
 Sets the current switch index in the state.
static void set (SoState *state, SoNode *, int32_t index)
static int32_t get (SoState *state)
 Returns current switch index from the state.
static int32_t getDefault ()
 Returns the default switch index.
static void initClass ()
 Initializes the SoSwitchElement class.

Protected Member Functions

virtual ~SoSwitchElement ()

Detailed Description

This is set by several nodes and is used to allow SoSwitch nodes to inherit the index.

Definition at line 71 of file SoSwitchElement.h.


Constructor & Destructor Documentation

virtual SoSwitchElement::~SoSwitchElement ( ) [protected, virtual]

Member Function Documentation

static int32_t SoSwitchElement::get ( SoState state) [inline, static]

Definition at line 89 of file SoSwitchElement.h.

References SoInt32Element::get().

static int32_t SoSwitchElement::getDefault ( ) [inline, static]

Definition at line 93 of file SoSwitchElement.h.

virtual void SoSwitchElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

static void SoSwitchElement::initClass ( ) [static]

Reimplemented from SoInt32Element.

static void SoSwitchElement::set ( SoState state,
int32_t  index 
) [inline, static]

Definition at line 80 of file SoSwitchElement.h.

References SoInt32Element::set().

static void SoSwitchElement::set ( SoState state,
SoNode ,
int32_t  index 
) [inline, static]

Definition at line 84 of file SoSwitchElement.h.


The documentation for this class was generated from the following file: