50#ifndef _SO_FLOAT_ELEMENT
51#define _SO_FLOAT_ELEMENT
66#include <Inventor/elements/SoSubElement.h>
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);
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.