SOSFFLOAT(3iv)

πŸ’– SoSFFloat β€” like, the manual page, but make it make sense πŸ’–

okay bestie, welcome to SoSFFloat(3IV) β€” the Open Inventor manual page for a field that holds exactly one floating-point number. yes, ONE. singular. it's giving minimalism, it's giving "one job and she does it". let's go πŸ¦‹


🌸 NAME 🌸

SoSFFloat β€” a field containing a floating-point value. that's it. that's the whole personality. πŸ’…


🧬 INHERITS FROM 🧬

SoField > SoSField > SoSFFloat

the family tree goes hard, ngl β€” she's a grandbaby of SoField and she inherited the whole field-girlie legacy. periodt. πŸ‘‘


✨ SYNOPSIS ✨

first things first, you gotta pull her in:

#include <Inventor/fields/SoSFFloat.h>

πŸŽ€ Methods from class SoSFFloat πŸŽ€

these are the ones she owns, the main character methods fr fr:

static SoType       getClassTypeId()
virtual void        getTypeId() const
float               getValue() const
float               operator =(float newValue)
void                setValue(float newValue)
int                 operator ==(const SoSFFloat &f) const
int                 operator !=(const SoSFFloat &f) const

🌈 Methods from class SoField 🌈

and these are the heirlooms she got from her ancestor SoField β€” the whole squad, no skips:

void                setIgnored(SbBool ignore)
SbBool              isIgnored() const
SbBool              isDefault() const
virtual SbBool      isOfType(SoType type) const
SbBool              set(const char *valueString)
void                get(SbString &valueString)
void                touch()
SbBool              connectFrom(SoField *fromField)
SbBool              connectFrom(SoEngineOutput *fromEngine)
void                disconnect()
SbBool              isConnected() const
SbBool              isConnectedFromField() const
SbBool              getConnectedField(SoField *&writingField) const
SbBool              isConnectedFromEngine() const
SbBool              getConnectedEngine(SoEngineOutput *&engineOutput)
                        const
void                enableConnection(SbBool flag)
SbBool              isConnectionEnabled() const
int                 getForwardConnections(SoFieldList &list) const
SoFieldContainer *  getContainer() const

πŸ’œ DESCRIPTION πŸ’œ

so basically β€” a field that contains one single-precision floating point number. one. single. precision. no cap, that's the entire vibe. πŸ“

and here's a lil detail that matters: SoSFFloats are written to file in standard scientific notation. so when she gets saved to disk she's out here looking like 1.000000e+00, iconic honestly, very STEM girlie of her. πŸ”₯


🌟 METHODS 🌟

⭐ static SoType getClassTypeId()

⭐ virtual void getTypeId() const

returns the type for this class, or for one particular object of this class. y'know, the "who am I" of it all. main character identity check. πŸ’«

⭐ float getValue() const

returns this field's value. the number. the actual number. she said "here, take it". 🫢

⭐ float operator =(float newValue)

⭐ void setValue(float newValue)

sets this field to newValue. both roads lead to the same slay. ✨

⭐ int operator ==(const SoSFFloat &f) const

⭐ int operator !=(const SoSFFloat &f) const

returns TRUE if f is of the same type and has the same value as this field. like, same energy AND same number, or it's a no from her. πŸ’€


πŸ” SEE ALSO πŸ”

SoField, SoSField, SoMFFloat

(the friends, the parent, and the multi-value cousin who cannot pick just one. we love her anyway. πŸ’–)


lowkey reminder bestie: this is the SoSFFloat(3IV) page, Open Inventor era, and the footer is just her little name tag β€” no extra date stamp, no version drama. so that's the whole page. you read it. you understood it. you ATE. πŸŽ€πŸ¦‹βœ¨πŸ’…

that's the manual, bestie β€” go forth and float, singularly. πŸ’–