Open Inventor Reference
SoInt32Element Class Reference

Subclasses store a single int32_t, int, or enum value. More...

#include <Inventor/elements/SoInt32Element.h>

Inheritance diagram for SoInt32Element:
SoElement SoComplexityTypeElement SoDrawStyleElement SoGLLightIdElement SoGLTextureEnabledElement SoLinePatternElement SoMaterialBindingElement SoNormalBindingElement SoPickStyleElement SoStencilBitsElement SoSwitchElement SoTextureCoordinateBindingElement SoUnitsElement

List of all members.

Public Member Functions

virtual SbBool matches (const SoElement *elt) const
 Comparison based on value of int32_ts.
virtual SoElementcopyMatchInfo () const
 Copy method, takes care copying the data.
virtual void setElt (int32_t value)
 Virtual set that subclasses can override to implement side-effect behaviors.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

static void initClass ()
 Initializes the SoInt32Element class.
static void set (int stackIndex, SoState *state, int32_t value)
 Set value.
static void set (int stackIndex, SoState *state, SoNode *, int32_t value)
static void set (int stackIndex, SoState *state, SoNode *, long value)
static int32_t get (int stackIndex, SoState *state)
 Get value.

Protected Member Functions

virtual ~SoInt32Element ()

Protected Attributes

int32_t data
 Storage for data.

Detailed Description

This class defines generic matches() and copy() methods.

Definition at line 75 of file SoInt32Element.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual SoElement* SoInt32Element::copyMatchInfo ( ) const [virtual]

Implements SoElement.

static int32_t SoInt32Element::get ( int  stackIndex,
SoState state 
) [inline, static]
virtual SbBool SoInt32Element::matches ( const SoElement elt) const [virtual]

Implements SoElement.

static void SoInt32Element::set ( int  stackIndex,
SoState state,
SoNode ,
int32_t  value 
) [inline, static]

Definition at line 97 of file SoInt32Element.h.

static void SoInt32Element::set ( int  stackIndex,
SoState state,
SoNode ,
long  value 
) [inline, static]
Parameters:
valueSystem long

Definition at line 100 of file SoInt32Element.h.

static void SoInt32Element::set ( int  stackIndex,
SoState state,
int32_t  value 
) [static]

Derived classes have static inline methods that pass in the stack index and cast their type into a int32_t. This just gets an appropriate instance and calls the virtual set.

Referenced by SoUnitsElement::set(), SoTextureCoordinateBindingElement::set(), SoSwitchElement::set(), SoPickStyleElement::set(), SoNormalBindingElement::set(), SoMaterialBindingElement::set(), and SoLinePatternElement::set().

virtual void SoInt32Element::setElt ( int32_t  value) [virtual]

Member Data Documentation

Definition at line 121 of file SoInt32Element.h.


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