Subclasses store a single float, int, or enum value.
More...
#include <Inventor/elements/SoFloatElement.h>
|
virtual void | setElt (float value) |
| Virtual set that subclasses can override to implement side-effect behaviors.
|
|
virtual | ~SoFloatElement () |
| Destructor.
|
|
| SoElement () |
| Constructor; use typeId.createInstance to create elements.
|
|
void | capture (SoState *state) const |
| Does whatever is necessary in state to capture this element for caching purposes.
|
|
virtual void | captureThis (SoState *state) const |
| Really captures this element, once it has been determined that a cache is open to capture it.
|
|
void | setTypeId (SoType id) |
| Sets typeId in instance.
|
|
void | setStackIndex (int index) |
| Sets stackIndex in instance.
|
|
SoElement * | getNextInStack () const |
| Returns next instance in specific element stack.
|
|
SoElement * | getNextFree () const |
| Returns next free element in a specific element stack.
|
|
|
static void | set (int stackIndex, SoState *state, float value) |
| Set value.
|
|
static float | get (int stackIndex, SoState *state) |
| Get value.
|
|
static SoElement * | getElement (SoState *state, int stackIndex) |
| Returns an instance of an element from the stack with the given index in the given state.
|
|
static const SoElement * | getConstElement (SoState *state, int stackIndex) |
| Returns a read-only pointer to the top instance in the given element stack.
|
|
static int | createStackIndex (SoType id) |
| Creates and returns a new stack index.
|
|
|
float | data |
| Storage for data.
|
|
This class defines generic matches() and copy() methods.
Definition at line 76 of file SoFloatElement.h.
◆ ~SoFloatElement()
virtual SoFloatElement::~SoFloatElement |
( |
| ) |
|
|
protectedvirtual |
◆ copyMatchInfo()
virtual SoElement * SoFloatElement::copyMatchInfo |
( |
| ) |
const |
|
virtual |
◆ get()
static float SoFloatElement::get |
( |
int |
stackIndex, |
|
|
SoState * |
state |
|
) |
| |
|
inlinestaticprotected |
◆ initClass()
static void SoFloatElement::initClass |
( |
| ) |
|
|
static |
◆ matches()
virtual bool SoFloatElement::matches |
( |
const SoElement * |
elt | ) |
const |
|
virtual |
◆ print()
virtual void SoFloatElement::print |
( |
FILE * |
fp | ) |
const |
|
virtual |
◆ set()
static void SoFloatElement::set |
( |
int |
stackIndex, |
|
|
SoState * |
state, |
|
|
float |
value |
|
) |
| |
|
staticprotected |
Derived classes have static inline methods that pass in the stack index and cast their type into a float. This just gets an appropriate instance and calls the virtual set.
Referenced by SoCreaseAngleElement::set(), SoComplexityElement::set(), SoFocalDistanceElement::set(), SoTextureQualityElement::set(), SoFontSizeElement::set(), SoPointSizeElement::set(), SoLineWidthElement::set(), SoCreaseAngleElement::set(), SoComplexityElement::set(), SoFocalDistanceElement::set(), SoFontSizeElement::set(), SoPointSizeElement::set(), and SoLineWidthElement::set().
◆ setElt()
virtual void SoFloatElement::setElt |
( |
float |
value | ) |
|
|
protectedvirtual |
◆ data
float SoFloatElement::data |
|
protected |
The documentation for this class was generated from the following file:
- C:/jh/mevislab/4.0.2_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/elements/SoFloatElement.h