SoMFFloat(3)
β¨ SoMFFloat β¨
okay so bestie, welcome to SoMFFloat from the Coin library π this is the manual page for it, and yes it's giving container-for-floating-point-values energy, and honestly? iconic.
πΈ NAME πΈ
SoMFFloat β the class that is literally a container for floating point values. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <Inventor/fields/SoMFFloat.h>
Inherits SoMField. yeah she's got a whole family tree, we love a legacy moment π
π«Ά Public Member Functions
virtual SoType getTypeId (void) constβ hands you the type id, the whole "who am I really" momentvirtual void copyFrom (const SoField &field)β copies the value(s) over from another fieldconst SoMFFloat & operator= (const SoMFFloat &field)β assignment operator, she's a copy queenvirtual SbBool isSame (const SoField &field) constβ checks if the type AND value(s) match, no capfloat operator[] (const int idx) constβ index into the values like the array she isconst float * getValues (const int start) constβ pointer to the values array, starting where you sayint find (float value, SbBool addifnotfound=FALSE)β hunts for a value, and ifaddifnotfoundisTRUEshe'll add it in for youvoid setValues (const int start, const int num, const float *newvals)β drops in a whole bunch of new values at oncevoid set1Value (const int idx, float value)β sets exactly one value at exactly one index, periodtvoid setValue (float value)β sets the value (singular bestie)float operator= (float val)β assign a plainfloatinto herSbBool operator== (const SoMFFloat &field) constβ equality check against anotherSoMFFloatSbBool operator!= (const SoMFFloat &field) constβ inequality check, the opposite vibefloat * startEditing (void)β start editing, grab the pointer and govoid finishEditing (void)β wrap up the editing, thank u nextvoid setValuesPointer (const int num, const float *userdata)β point her at user data, const flavourvoid setValuesPointer (const int num, float *userdata)β point her at user data, non-const flavour
π Public Member Functions inherited from SoMField
virtual ~SoMField ()β destructor, she's leaving the group chatint getNum (void) constβ how many values are we holdingvoid setNum (const int num)β set that countvirtual void deleteValues (int start, int num=-1)β yeet some values,num=-1means the default behaviourvirtual void insertSpace (int start, int num)β make room at the tableSbBool set1 (const int index, const char *const valuestring)β set one from a stringvoid get1 (const int index, SbString &valuestring)β get one out as a stringvirtual void enableDeleteValues (void)β turn on value deletionvirtual SbBool isDeleteValuesEnabled (void) constβ is value deletion enabled or not
π Public Member Functions inherited from SoField
virtual ~SoField ()void setIgnored (SbBool ignore)SbBool isIgnored (void) constvoid setDefault (SbBool defaultVal)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)void disconnect (SoField *field)SbBool isConnectedFromField (void) constSbBool getConnectedField (SoField *&master) constint getNumConnections (void) constint getForwardConnections (SoFieldList &slavelist) constint getConnections (SoFieldList &masterlist) constvoid disconnect (void)SbBool isConnected (void) constvoid setContainer (SoFieldContainer *cont)SoFieldContainer * getContainer (void) constSbBool set (const char *valuestring)void get (SbString &valuestring)SbBool shouldWrite (void) constvirtual void touch (void)virtual void startNotify (void)virtual void notify (SoNotList *nlist)SbBool enableNotify (SbBool on)SbBool isNotifyEnabled (void) constvoid addAuditor (void *f, SoNotRec::Type type)void removeAuditor (void *f, SoNotRec::Type type)int operator== (const SoField &f) constint operator!= (const SoField &f) constvirtual void connectionStatusChanged (int numconnections)SbBool isReadOnly (void) constvirtual void fixCopy (SbBool copyconnections)virtual SbBool referencesCopy (void) constvoid copyConnection (const SoField *fromfield)virtual SbBool read (SoInput *input, const SbName &name)virtual void write (SoOutput *out, const SbName &name) constvirtual void countWriteRefs (SoOutput *out) constvoid setFieldType (int type)int getFieldType (void) constSbBool getDirty (void) constvoid setDirty (SbBool dirty)void evaluate (void) const
π Static Public Member Functions
static void * createInstance (void)β spawns a new instance of the class typestatic SoType getClassTypeId (void)β theSoTypefor this class, static stylestatic void initClass (void)β sets up the type system, internal moment
π Static Public Member Functions inherited from SoMField
static SoType getClassTypeId (void)static void atexit_cleanup (void)static void initClass (void)
β Static Public Member Functions inherited from SoField
static void initClass (void)static void initClasses (void)static void cleanupClass (void)static SoType getClassTypeId (void)
π§ Protected Member Functions
virtual void deleteAllValues (void)β internal API member, not likely to be your businessvirtual void copyValue (int to, int from)β moves values around internally, override needed per fieldvirtual int fieldSizeof (void) constvirtual void * valuesPtr (void)virtual void setValuesPtr (void *ptr)virtual void allocValues (int num)
π Protected Member Functions inherited from SoMField
SoMField (void)virtual void makeRoom (int newnum)virtual SoNotRec createNotRec (SoBase *container)void setChangedIndex (const int chgidx)void setChangedIndices (const int chgidx=-1, const int numchgind=0)
πΈ Protected Member Functions inherited from SoField
SoField (void)void valueChanged (SbBool resetdefault=TRUE)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
π Protected Attributes
float * valuesβ the actual values, right there
π Protected Attributes inherited from SoMField
int numint maxNumSbBool userDataIsUsed
π¦ Additional Inherited Members
- Public Types inherited from
SoField:enum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
π« Detailed Description π«
okay so the SoMFFloat class is a container for floating point values. literally her whole purpose π«Ά
This field is used where nodes, engines or other field containers need to store a group of multiple floating point values. she's the group-project friend who actually holds all the numbers.
This field supports application data sharing through a setValuesPointer() method. See SoMField documentation for information on how to use this function. iykyk π
See also SoSFFloat
π₯ Member Function Documentation π₯
void * SoMFFloat::createInstance (void ) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. (translation: bestie this is not for you, it's housekeeping π§Ή)
Creates a new instance of the class type corresponding to the SoType object.
SoType SoMFFloat::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class.
SoType SoMFFloat::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoField. This is used for runtime type checking and "downward" casting.
Implements SoField.
void SoMFFloat::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. f must be of the same type as this field. no mixing types, we're not messy π
Implements SoField.
SbBool SoMFFloat::isSame (const SoField & f) const [virtual]
Check for equal type and value(s).
Implements SoField.
void SoMFFloat::deleteAllValues (void ) [protected], [virtual]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoMField.
void SoMFFloat::copyValue (int to, int from) [protected], [virtual]
This method is used for moving values around internally within a multivalue field. It needs to be overridden in each field so it automatically takes care of running copy constructors where necessary.
Implements SoMField.
const float * SoMFFloat::getValues (const int start) const [inline]
Returns a pointer to the values array. that's it that's the function β¨
void SoMFFloat::initClass (void ) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
π Author π
Generated automatically by Doxygen for Coin from the source code. yes she was auto-generated, she's still a queen π
Version 4.0.10 Β· Thu Jun 25 2026 00:00:00
and that's the whole page bestie π«Ά go forth and store those floats πβ¨ππ¦
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms