50#ifndef _SO_FLOAT_ELEMENT
51#define _SO_FLOAT_ELEMENT
74 virtual void print(FILE *fp)
const;
88 static void initClass();
89 static void exitClass();
96 static void set(
SoType type,
int stackIndex,
SoState *state,
float value);
101 static float get(
SoType type,
int stackIndex,
SoState *state)
102 {
return (
static_cast<const SoFloatElement*
>(getConstElement(state, type, stackIndex)))->data;}
105 float getValue()
const {
return data; }
116 virtual void setElt(
float value);
#define SoEXTENDER_Documented
#define SO_ELEMENT_ABSTRACT_HEADER(className)
Abstract base class for all state elements.
Element's subclasses store a single float, int, or enum value.
virtual void print(FILE *fp) const
Prints element (for debugging).
Stores runtime type information.