Open Inventor Reference
|
Subclasses store a single int32_t, int, or enum value. More...
#include <Inventor/elements/SoInt32Element.h>
Public Member Functions | |
virtual SbBool | matches (const SoElement *elt) const |
Comparison based on value of int32_ts. | |
virtual SoElement * | copyMatchInfo () 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. |
This class defines generic matches() and copy() methods.
Definition at line 75 of file SoInt32Element.h.
virtual SoInt32Element::~SoInt32Element | ( | ) | [protected, virtual] |
Derived classes have static inline methods to pass in the stackIndex and cast the returned value to the right type.
Definition at line 112 of file SoInt32Element.h.
References SoElement::getConstElement().
Referenced by SoStencilBitsElement::get(), SoUnitsElement::get(), SoTextureCoordinateBindingElement::get(), SoSwitchElement::get(), SoPickStyleElement::get(), SoNormalBindingElement::get(), SoMaterialBindingElement::get(), SoLinePatternElement::get(), SoGLTextureEnabledElement::get(), SoGLLightIdElement::get(), SoDrawStyleElement::get(), and SoComplexityTypeElement::get().
static void SoInt32Element::initClass | ( | ) | [static] |
Reimplemented from SoElement.
Reimplemented in SoComplexityTypeElement, SoDrawStyleElement, SoGLDrawStyleElement, SoGLLightIdElement, SoGLLinePatternElement, SoGLTextureEnabledElement, SoLinePatternElement, SoMaterialBindingElement, SoNormalBindingElement, SoPickStyleElement, SoSwitchElement, SoTextureCoordinateBindingElement, SoUnitsElement, SoGLStencilBitsElement, and SoStencilBitsElement.
Implements SoElement.
virtual void SoInt32Element::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoElement.
Reimplemented in SoComplexityTypeElement, SoDrawStyleElement, SoGLLightIdElement, SoLinePatternElement, SoMaterialBindingElement, SoNormalBindingElement, SoPickStyleElement, SoTextureCoordinateBindingElement, and SoUnitsElement.
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] |
value | System long |
Definition at line 100 of file SoInt32Element.h.
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] |
Reimplemented in SoGLDrawStyleElement, SoGLLinePatternElement, and SoGLTextureEnabledElement.
int32_t SoInt32Element::data [protected] |
Definition at line 121 of file SoInt32Element.h.