SoMFVec3s(3)
π¦ SoMFVec3s(3) β the Coin manual, but make it cute π¦
okay bestie, welcome to the Coin manual page for SoMFVec3s, straight out of section 3 of the manual. it's a whole vibe, it's a whole container, and we're gonna get into every single crumb of it. no skipping. periodt. π
πΈ NAME πΈ
SoMFVec3s β the SoMFVec3s class is a container for SbVec3s vectors. that's it, that's the whole job description, and she does it flawlessly. π
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoMFVec3s.h>
Inherits SoMField.
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constβ hands you the type id, runtime-type-checking style.virtual void copyFrom (const SoField &field)β copies the value(s) over from another field.const SoMFVec3s & operator= (const SoMFVec3s &field)β assignment operator, but make it this class specifically.virtual SbBool isSame (const SoField &field) constβ are these two the same type and the same value(s)? let's find out.const SbVec3s & operator[] (const int idx) constβ index into the array, chef's kiss.const SbVec3s * getValues (const int start) constβ pointer to the values array, incoming.int find (const SbVec3s &value, SbBool addifnotfound=FALSE)β go looking for a value.void setValues (const int start, const int num, const SbVec3s *newvals)β set a whole bunch of values at once.void set1Value (const int idx, const SbVec3s &value)β set exactly one value atidx.void setValue (const SbVec3s &value)β set the field to a single value.const SbVec3s & operator= (const SbVec3s &val)β assign a singleSbVec3sto this field.SbBool operator== (const SoMFVec3s &field) constβ equality check against anotherSoMFVec3s.SbBool operator!= (const SoMFVec3s &field) constβ the iconic inequality check.SbVec3s * startEditing (void)β open up the field for direct editing.void finishEditing (void)β close it back up, no cap.void setValuesPointer (const int num, const SbVec3s *userdata)β point the field at your own data.void setValuesPointer (const int num, SbVec3s *userdata)β same, non-const flavor.void setValuesPointer (const int num, const short *userdata)β same, but forshortdata.void setValuesPointer (const int num, short *userdata)β same, non-constshortflavor.void setValues (int start, int num, const short xyz[][3])β set values from ashorttriplet array.void set1Value (int idx, short x, short y, short z)β set the vector atidxfrom three shorts.void set1Value (int idx, const short xyz[3])β set the vector atidxfrom a triplet.void setValue (short x, short y, short z)β one single vector, three shorts.void setValue (const short xyz[3])β one single vector from a triplet array.
π Public Member Functions inherited from SoMField π
virtual ~SoMField ()int getNum (void) constvoid setNum (const int num)virtual void deleteValues (int start, int num=-1)virtual void insertSpace (int start, int num)SbBool set1 (const int index, const char *const valuestring)void get1 (const int index, SbString &valuestring)virtual void enableDeleteValues (void)virtual SbBool isDeleteValuesEnabled (void) const
π 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)static SoType getClassTypeId (void)static void initClass (void)
β 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)virtual void copyValue (int to, int from)virtual 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 π
SbVec3s * values
π Protected Attributes inherited from SoMField π
int numint maxNumSbBool userDataIsUsed
π¦ Additional Inherited Members π¦
- Public Types inherited from
SoFieldenum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
π Detailed Description π
the SoMFVec3s class is a container for SbVec3s vectors. iconic behavior honestly.
this field is used where nodes, engines or other field containers need to store an array of vectors with three elements. three elements, zero drama. π
this field supports application data sharing through a setValuesPointer() method. see SoMField documentation for information on how to use this function. go read it, it's giving β¨
See also
SbVec3s, SoSFVec3s Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
bestie heads up: this class is a Coin-only extension. it is not in the original SGI Open Inventor v2.1 API. so don't go looking for her there, she's not there. π
Since
Coin 2.5
π Member Function Documentation π
π«Ά void * SoMFVec3s::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: not for you, it's giving library-internal π )
creates a new instance of the class type corresponding to the SoType object.
π«Ά SoType SoMFVec3s::getClassTypeId (void ) [static] π«Ά
this static method returns the SoType object associated with objects of this class. boom, that's the whole thing.
π«Ά SoType SoMFVec3s::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 SoMFVec3s::copyFrom (const SoField & f) [virtual] π«Ά
copy value(s) from f into this field. f must be of the same type as this field. no mismatched energy allowed here, fr fr.
Implements SoField.
π«Ά SbBool SoMFVec3s::isSame (const SoField & f) const [virtual] π«Ά
check for equal type and value(s). it's giving twin check. π―
Implements SoField.
π«Ά void SoMFVec3s::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 SoMFVec3s::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. very main character, very necessary. π
Implements SoMField.
π«Ά const SbVec3s * SoMFVec3s::getValues (const int start) const [inline] π«Ά
returns a pointer to the values array. that's it, that's the pointer, go wild.
π«Ά void SoMFVec3s::initClass (void ) [static] π«Ά
internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
π«Ά void SoMFVec3s::setValues (int start, int numarg, const short xyz[][3]) π«Ά
set num vector array elements from the xyz array, reading from index 0 in the given float-triplet vector array and storing values from index start in this SoMFVec3f's array.
if start + num is larger than the current number of elements in the SoMFVec3f field, this method will automatically expand the field to accommodate all given float-vector element values. she grows. she adapts. π±
π«Ά void SoMFVec3s::set1Value (int idx, short x, short y, short z) π«Ά
set the vector at idx.
π«Ά void SoMFVec3s::set1Value (int idx, const short xyz[3]) π«Ά
set the vector at idx.
π«Ά void SoMFVec3s::setValue (short x, short y, short z) π«Ά
set this field to contain a single vector with the given element values.
π«Ά void SoMFVec3s::setValue (const short xyz[3]) π«Ά
set this field to contain a single vector with the given element values.
π Author π
generated automatically by Doxygen for Coin from the source code. (not me, i just did the makeup π)
and that's the whole page bestie, you ate it, every option, every overload, every inherited member, nothing skipped, no cap. π«Ά
π Version 4.0.10 β Thu Jun 25 2026 00:00:00 β SoMFVec3s(3) π
mwah, go write some vectors. ππ β¨
π¦ 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