SoMFUShort(3)
π NAME π
SoMFUShort β bestie, this is the container class for unsigned short integer values. Like, that's its whole job. It holds a lil group of unsigned shorts and it does it flawlessly. π
π¦ SYNOPSIS π¦
first things first, you gotta include it:
#include <Inventor/fields/SoMFUShort.h>
and it Inherits SoMField. family lineage, we love to see it. π«Ά
β¨ Public Member Functions β¨
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoMFUShort & operator= (const SoMFUShort &field)
virtual SbBool isSame (const SoField &field) const
unsigned short operator[] (const int idx) const
const unsigned short * getValues (const int start) const
int find (unsigned short value, SbBool addifnotfound=0)
void setValues (const int start, const int num, const unsigned short
*newvals)
void set1Value (const int idx, unsigned short value)
void setValue (unsigned short value)
unsigned short operator= (unsigned short val)
SbBool operator== (const SoMFUShort &field) const
SbBool operator!= (const SoMFUShort &field) const
unsigned short * startEditing (void)
void finishEditing (void)
void setValuesPointer (const int num, const unsigned short *userdata)
void setValuesPointer (const int num, unsigned short *userdata)
πΈ Public Member Functions inherited from SoMField πΈ
the inherited glow-up era, no cap:
virtual ~SoMField ()
int getNum (void) const
void 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 π
okay this one's a long list, but we do not skip. ever. π
virtual ~SoField ()
void setIgnored (SbBool ignore)
SbBool isIgnored (void) const
void setDefault (SbBool def)
SbBool isDefault (void) const
SbBool isOfType (const SoType type) const
void enableConnection (SbBool flag)
SbBool isConnectionEnabled (void) const
SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=0, SbBool
append=0)
SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=0)
void disconnect (SoEngineOutput *engineoutput)
SbBool isConnectedFromEngine (void) const
SbBool getConnectedEngine (SoEngineOutput *&master) const
SbBool connectFrom (SoField *master, SbBool notnotify=0, SbBool
append=0)
SbBool appendConnection (SoField *master, SbBool notnotify=0)
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 *in, 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)
static SoType getClassTypeId (void)
static void initClass (void)
π 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 π§
the backstage pass crew:
virtual void deleteAllValues (void)
virtual void copyValue (int to, int from)
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)
π§ Protected Member Functions inherited from SoField π§
SoField (void)
void valueChanged (SbBool resetdefault=1)
virtual void evaluateConnection (void) const
virtual SbBool readConnection (SoInput *in)
virtual void writeConnection (SoOutput *out) const
SbBool isDestructing (void) const
π Protected Attributes π
unsigned short * values
π 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 SoMFUShort is a container for unsigned short integer values. that's the tea. β
this field supports application data sharing through a setValuesPointer() method. bestie, if you wanna know how to actually use that function, go read the SoMField documentation β it's all in there. π
this field shows up whenever nodes, engines or other field containers need to store a whole group of multiple short unsigned integer values. it's the group-chat of unsigned shorts, fr fr. π¬
See also
SoSFUShortβ the single-value sibling, if you only need one. π
π Member Function Documentation π
SoType SoMFUShort::getTypeId (void ) const [virtual]
returns the type identification instance that uniquely identifies the Coin field class this object belongs to. it's basically the class's ID card and it never lies. πͺͺ
See also
getClassTypeId()SoType
Implements SoField.
void SoMFUShort::copyFrom (const SoField & f) [virtual]
copies the value(s) from f straight into this field. heads up though: f must be of the same type as this field, no exceptions. π¨
Implements SoField.
SbBool SoMFUShort::isSame (const SoField & f) const [virtual]
checks for equal type AND equal value(s). both. it's not gonna let one slide. β
Implements SoField.
void SoMFUShort::deleteAllValues (void ) [protected], [virtual]
this API member is considered internal to the library, since it's not likely to be of interest to the application programmer. aka: not your business bestie, move along. π
Implements SoMField.
void SoMFUShort::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. yes, the original really does spell it "contructors". we don't fix, we respect. π
Implements SoMField.
const unsigned short * SoMFUShort::getValues (const int start) const [inline]
returns a pointer to the values array. that's it. that's the function. pointer. array. go wild. π₯
π Author π
generated automatically by Doxygen for Coin from the source code. the robots wrote this one, not me. π€β¨
and that's the whole page, bestie!! this gorgeous thing is from Coin, Version 2.5.0 β remember the version number, it's giving very "iykyk". mwah, go forth and store your unsigned shorts. ππ¦πΈππ π«Ά
π¦ 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