SoMFVec4s(3)
okay bestie, sit down, hydrate, and let me tell you about SoMFVec4s(3) β this one's from the Coin library and it's lowkey iconic. π
πΈ NAME πΈ
SoMFVec4s β the class that is a container for SbVec4s vectors. that's it, that's the whole personality. π
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoMFVec4s.h>
Inherits SoMField.
π Public Member Functions π
virtual SoType getTypeId (void) constβ grab the type id, virtual style πvirtual void copyFrom (const SoField &field)β copy values over from another fieldconst SoMFVec4s & operator= (const SoMFVec4s &field)β assign a whole otherSoMFVec4sto this onevirtual SbBool isSame (const SoField &field) constβ are these two the same? type AND values? πconst SbVec4s & operator[] (const int idx) constβ index into it like an array, no capconst SbVec4s * getValues (const int start) constβ pointer to the values array, starting at startint find (const SbVec4s &value, SbBool addifnotfound=0)β hunt for a value, optionally add it if it's not there π΅οΈvoid setValues (const int start, const int num, const SbVec4s *newvals)β slam in a bunch of valuesvoid set1Value (const int idx, const SbVec4s &value)β set exactly one value at idxvoid setValue (const SbVec4s &value)β set the whole field to one single valueconst SbVec4s & operator= (const SbVec4s &val)β assign oneSbVec4sinSbBool operator== (const SoMFVec4s &field) constβ equality check, slaySbBool operator!= (const SoMFVec4s &field) constβ inequality check, also slaySbVec4s * startEditing (void)β begin editing, get your hands on the raw data β¨void finishEditing (void)β wrap up the editing session, tysmvoid setValuesPointer (const int num, const SbVec4s *userdata)β point at user data, don't copyvoid setValuesPointer (const int num, SbVec4s *userdata)β same but non-constvoid setValuesPointer (const int num, const short *userdata)β same but withshortdatavoid setValuesPointer (const int num, short *userdata)β same but non-constshortdatavoid setValues (int start, int num, const short xyzw[][4])β set from ashortarray ofxyzw[][4]void set1Value (int idx, short x, short y, short z, short w)β set one vector from four separateshortsvoid set1Value (int idx, const short xyzw[4])β set one vector from ashort xyzw[4]void setValue (short x, short y, short z, short w)β one vector, fourshortsvoid setValue (const short xyzw[4])β one vector from ashort xyzw[4]
π«Ά 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)
π Public Member Functions inherited from SoField π
virtual ~SoField ()void setIgnored (SbBool ignore)SbBool isIgnored (void) constvoid setDefault (SbBool def)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=0, SbBool append=0)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=0)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=0, SbBool append=0)SbBool appendConnection (SoField *master, SbBool notnotify=0)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 *in, 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)β make an instance π¦static SoType getClassTypeId (void)β the class type idstatic void initClass (void)β set the class up
π Static Public Member Functions inherited from SoMField π
static SoType getClassTypeId (void)static void initClass (void)
π Static Public Member Functions inherited from SoField π
static void initClass (void)static void initClasses (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)
π§ Protected Member Functions inherited from SoField π§
SoField (void)void valueChanged (SbBool resetdefault=1)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
π Protected Attributes π
SbVec4s * 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 here's the tea. The SoMFVec4s class is a container for SbVec4s vectors.
This field is the one you reach for when nodes, engines or other field containers need to store an array of vectors with four elements. four elements. array. you got it. π«Ά
This field supports application data sharing through a setValuesPointer() method. Head to the SoMField documentation for the info on how to actually use this function β it's all there, bestie, I'm not gonna gatekeep you. π
π¦ See also π¦
SbVec4s, SoSFVec4s
πΈ Since πΈ
Coin 2.5
π Member Function Documentation π
SoType SoMFVec4s::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's giving "who am I" but make it a SoType.
See also: getClassTypeId(), SoType
Implements SoField.
void SoMFVec4s::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. Heads up: f must be of the same type as this field. no mixing, no mashups. π
Implements SoField.
SbBool SoMFVec4s::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). both. type and values. π―
Implements SoField.
void SoMFVec4s::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. so like, not your business unless it is. π€·
Implements SoMField.
void SoMFVec4s::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 contructors where necessary.
Implements SoMField.
const SbVec4s * SoMFVec4s::getValues (const int start) const [inline]
Returns a pointer to the values array. π«΅ pointing. at the array.
References SoMField::num.
void SoMFVec4s::setValues (int start, int numarg, const short xyzw[][4])
Set num vector array elements from xyzw, starting at index start.
References SoMField::maxNum, SoMField::num, and SoField::valueChanged().
void SoMFVec4s::set1Value (int idx, short x, short y, short z, short w)
Set the vector at idx. just the one. β
void SoMFVec4s::set1Value (int idx, const short xyzw[4])
Set the vector at idx. same energy, different argument shape. β¨
void SoMFVec4s::setValue (short x, short y, short z, short w)
Set this field to contain a single vector with the given element values.
void SoMFVec4s::setValue (const short xyzw[4])
Set this field to contain a single vector with the given element values.
References SoMField::setNum().
π Author π
Generated automatically by Doxygen for Coin from the source code. yes girl, the robots wrote it, we're all just living in its world. π€
and that's the page bestie!! this was SoMFVec4s(3) from Coin, Version 2.5.0 β go forth and store those arrays of four-element vectors, you absolute main character ππβ¨
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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