60#ifndef _SO_FLOAT_ELEMENT
61#define _SO_FLOAT_ELEMENT
88 virtual void print(FILE *fp)
const;
99 static void set(
int stackIndex,
SoState *state,
float 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 float, int, or enum value.
virtual void print(FILE *fp) const
Prints element (for debugging)
virtual void setElt(float value)
Virtual set that subclasses can override to implement side-effect behaviors.
virtual SoElement * copyMatchInfo() const
Copy method, takes care copying the data.
virtual ~SoFloatElement()
Destructor.
static float get(int stackIndex, SoState *state)
Get value.
static void initClass()
Initializes the SoFloatElement class.
float data
Storage for data.
virtual bool matches(const SoElement *elt) const
Comparison based on value of floats.
static void set(int stackIndex, SoState *state, float value)
Set value.
An SoState collects and holds state while traversing a scene graph.