SoMFFloat(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

✨ 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" moment
  • virtual void copyFrom (const SoField &field) β€” copies the value(s) over from another field
  • const SoMFFloat & operator= (const SoMFFloat &field) β€” assignment operator, she's a copy queen
  • virtual SbBool isSame (const SoField &field) const β€” checks if the type AND value(s) match, no cap
  • float operator[] (const int idx) const β€” index into the values like the array she is
  • const float * getValues (const int start) const β€” pointer to the values array, starting where you say
  • int find (float value, SbBool addifnotfound=FALSE) β€” hunts for a value, and if addifnotfound is TRUE she'll add it in for you
  • void setValues (const int start, const int num, const float *newvals) β€” drops in a whole bunch of new values at once
  • void set1Value (const int idx, float value) β€” sets exactly one value at exactly one index, periodt
  • void setValue (float value) β€” sets the value (singular bestie)
  • float operator= (float val) β€” assign a plain float into her
  • SbBool operator== (const SoMFFloat &field) const β€” equality check against another SoMFFloat
  • SbBool operator!= (const SoMFFloat &field) const β€” inequality check, the opposite vibe
  • float * startEditing (void) β€” start editing, grab the pointer and go
  • void finishEditing (void) β€” wrap up the editing, thank u next
  • void setValuesPointer (const int num, const float *userdata) β€” point her at user data, const flavour
  • void 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 chat
  • int getNum (void) const β€” how many values are we holding
  • void setNum (const int num) β€” set that count
  • virtual void deleteValues (int start, int num=-1) β€” yeet some values, num=-1 means the default behaviour
  • virtual void insertSpace (int start, int num) β€” make room at the table
  • SbBool set1 (const int index, const char *const valuestring) β€” set one from a string
  • void get1 (const int index, SbString &valuestring) β€” get one out as a string
  • virtual void enableDeleteValues (void) β€” turn on value deletion
  • virtual 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) const
  • void setDefault (SbBool defaultVal)
  • SbBool isDefault (void) const
  • SbBool isOfType (const SoType type) const
  • void enableConnection (SbBool flag)
  • SbBool isConnectionEnabled (void) const
  • SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)
  • void disconnect (SoEngineOutput *engineoutput)
  • SbBool isConnectedFromEngine (void) const
  • SbBool getConnectedEngine (SoEngineOutput *&master) const
  • SbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)
  • void disconnect (SoField *field)
  • SbBool isConnectedFromField (void) const
  • SbBool getConnectedField (SoField *&master) const
  • int getNumConnections (void) const
  • int getForwardConnections (SoFieldList &slavelist) const
  • int getConnections (SoFieldList &masterlist) const
  • void disconnect (void)
  • SbBool isConnected (void) const
  • void setContainer (SoFieldContainer *cont)
  • SoFieldContainer * getContainer (void) const
  • SbBool set (const char *valuestring)
  • void get (SbString &valuestring)
  • SbBool shouldWrite (void) const
  • virtual void touch (void)
  • virtual void startNotify (void)
  • virtual void notify (SoNotList *nlist)
  • SbBool enableNotify (SbBool on)
  • SbBool isNotifyEnabled (void) const
  • void addAuditor (void *f, SoNotRec::Type type)
  • void removeAuditor (void *f, SoNotRec::Type type)
  • int operator== (const SoField &f) const
  • int operator!= (const SoField &f) const
  • virtual void connectionStatusChanged (int numconnections)
  • SbBool isReadOnly (void) const
  • virtual void fixCopy (SbBool copyconnections)
  • virtual SbBool referencesCopy (void) const
  • void copyConnection (const SoField *fromfield)
  • virtual SbBool read (SoInput *input, const SbName &name)
  • virtual void write (SoOutput *out, const SbName &name) const
  • virtual void countWriteRefs (SoOutput *out) const
  • void setFieldType (int type)
  • int getFieldType (void) const
  • SbBool getDirty (void) const
  • void setDirty (SbBool dirty)
  • void evaluate (void) const

πŸŽ€ Static Public Member Functions

  • static void * createInstance (void) β€” spawns a new instance of the class type
  • static SoType getClassTypeId (void) β€” the SoType for this class, static style
  • static 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 business
  • virtual void copyValue (int to, int from) β€” moves values around internally, override needed per field
  • virtual int fieldSizeof (void) const
  • virtual 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) const
  • virtual SbBool readConnection (SoInput *in)
  • virtual void writeConnection (SoOutput *out) const
  • SbBool isDestructing (void) const

πŸ‘‘ Protected Attributes

  • float * values β€” the actual values, right there

πŸ’– Protected Attributes inherited from SoMField

  • int num
  • int maxNum
  • SbBool 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