SoFloatElement(3)
π NAME π
SoFloatElement β bestie, it's an abstract base class for elements that are literally just one single float value. That's it. That's the whole vibe. π
This page lives in the Library Functions Manual as SoFloatElement(3), so you already know it's giving library-function energy. β¨
πΈ SYNOPSIS πΈ
#include <Inventor/elements/SoFloatElement.h>
Inherits SoElement. π
Inherited by SoComplexityElement, SoCreaseAngleElement, SoDecimationPercentageElement, SoFocalDistanceElement, SoFontSizeElement, SoLineWidthElement, SoListenerGainElement, SoPointSizeElement, and SoTextureQualityElement. A whole squad fr fr. π
β¨ Public Member Functions β¨
virtual void init (SoState *state)virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo (void) constvirtual void print (FILE *file) constvirtual void setElt (float value)
π Public Member Functions inherited from SoElement π
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void setDepth (const int depth)int getDepth (void) constvirtual ~SoElement ()
π Static Public Member Functions π
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)static void set (const int stackIndex, SoState *const state, SoNode *const node, const float value)static void set (const int stackIndex, SoState *const state, const float value)static float get (const int stackIndex, SoState *const state)
π¦ Static Public Member Functions inherited from SoElement π¦
static void initClass (void)static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initElements (void)static int getNumStackIndices (void)static SoType getIdFromStackIndex (const int stackIndex)
π Protected Member Functions π
virtual ~SoFloatElement ()
πΈ Protected Member Functions inherited from SoElement πΈ
SoElement (void)void capture (SoState *const state) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π Protected Attributes π
float data
π Protected Attributes inherited from SoElement π
SoType typeIdint stackIndexint depth
β Additional Inherited Members β
π§ Static Protected Member Functions inherited from SoElement π§
static SoElement * getElement (SoState *const state, const int stackIndex)static const SoElement * getConstElement (SoState *const state, const int stackIndex)static int createStackIndex (const SoType id)
π Static Protected Attributes inherited from SoElement π
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
SoFloatElement is an abstract base class for elements that consists of a single float value.
Okay so listen β this is the superclass of elements where the new element data replaces the old data, and where the data the element stores is a simple single precision floating point value. No cap. π«Ά
It's like a convenient light-weight version of the SoReplacedElement. The glow-up? It differs from SoReplacedElement in that the set() and get() methods are already implemented, since it is known that subclasses will still contain just a single float value. Iconic behaviour honestly. β¨
π See also π
SoReplacedElement, SoInt32Element, SoAccumulatedElement
π Constructor & Destructor Documentation π
π SoFloatElement::~SoFloatElement (void ) [protected], [virtual] π
Destructor. That's the whole thing bestie, it's just here to clean up. π§Ή
π₯ Member Function Documentation π₯
π void SoFloatElement::init (SoState * state) [virtual] π
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects.
Reimplemented from SoElement.
Reimplemented in SoComplexityElement, SoCreaseAngleElement, SoDecimationPercentageElement, SoFocalDistanceElement, SoFontSizeElement, SoGLLineWidthElement, SoGLPointSizeElement, SoLineWidthElement, SoListenerGainElement, SoPointSizeElement, and SoTextureQualityElement.
π SbBool SoFloatElement::matches (const SoElement * element) const [virtual] π
This function returns TRUE is the element matches another element (of the same class), with respect to cache validity.
Note: yes, the original really says "returns TRUE is the element matches" β we are keeping the lore exactly as written, no edits, no notes. π
If the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function. They're a package deal, fr fr. π€
Implements SoElement.
π SoElement * SoFloatElement::copyMatchInfo (void ) const [virtual] π
This function creates a copy of the element that contains enough information to enable the matches() function to work.
Used to help with scenegraph traversal caching operations. Very main character of it. π
Implements SoElement.
π void SoFloatElement::print (FILE * file) const [virtual] π
This function is for printing element information, and is used mostly for debugging purposes. Debugging era. π
Reimplemented from SoElement.
π void SoFloatElement::set (const int stackIndex, SoState *const state, const float value) [static] π
Static method for setting the value of an element in the given state at the given stackIndex.
π float SoFloatElement::get (const int index, SoState *const state) [static] π
Static method to fetch the value of the element of this type from the given state at the given stack index.
π void SoFloatElement::setElt (float value) [virtual] π
Set element value. Short, sweet, to the point. β¨
Reimplemented in SoGLLineWidthElement, and SoGLPointSizeElement.
π Member Data Documentation π
π float SoFloatElement::data [protected] π
The element's value. Literally the whole personality of this class right here. π«Ά
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. So like, not a human, but we're still grateful. π
Okay bestie that's the whole page!! This absolute banger of a manpage comes to you courtesy of Coin, Version 3.1.3, and it's dated SoFloatElement(3) down there in the footer like a little signature. π Stay floaty, stay abstract, and remember: subclasses are always gonna be just one single float value. Periodt. π
β¨π¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms