60#ifndef _SO_INT32_ELEMENT
61#define _SO_INT32_ELEMENT
97 static void set(
int stackIndex,
99 { set(stackIndex, state, value); }
100 static void set(
int stackIndex,
103 { set(stackIndex, state, (
int32_t) value); }
#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_ABSTRACT_HEADER(className)
Macros to be called within the class definition header for a element subclass:
This is the abstract base class for all state elements.
static const SoElement * getConstElement(SoState *state, int stackIndex)
Returns a read-only pointer to the top instance in the given element stack.
Subclasses store a single int32_t, int, or enum value.
virtual void print(FILE *fp) const
Prints element (for debugging)
static int32_t get(int stackIndex, SoState *state)
Get value.
int32_t data
Storage for data.
static void set(int stackIndex, SoState *state, int32_t value)
Set value.
static void set(int stackIndex, SoState *state, SoNode *, long value)
virtual bool matches(const SoElement *elt) const
Comparison based on value of int32_ts.
virtual ~SoInt32Element()
virtual SoElement * copyMatchInfo() const
Copy method, takes care copying the data.
static void set(int stackIndex, SoState *state, SoNode *, int32_t value)
virtual void setElt(int32_t value)
Virtual set that subclasses can override to implement side-effect behaviors.
static void initClass()
Initializes the SoInt32Element class.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.