SoSFVec4b(3)
πΈ NAME πΈ
SoSFVec4b β the class that is literally just a container for an SbVec4b vector. that's it. that's the whole job description. one field, four little bytes, doing its lil thing flawlessly. π
β¨ SYNOPSIS β¨
okay so before ANY of this works you need the include, do not skip it, i will know:
#include <Inventor/fields/SoSFVec4b.h>
and it Inherits SoSField, which is giving major "my family has connections" energy but honestly? deserved. π
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constβ tells you what type this thing is, uniquely.virtual void copyFrom (const SoField &field)β copies the value(s) out of another field.const SoSFVec4b & operator= (const SoSFVec4b &field)β assignment, but for whole fields.virtual SbBool isSame (const SoField &field) constβ are we the same type AND the same value? yes/no.SbVec4b getValue (void) constβ hand me the vector pls.void setValue (SbVec4b newvalue)β here, take this vector instead.SbVec4b operator= (SbVec4b newvalue)β same idea, operator flavoured.int operator== (const SoSFVec4b &field) constβ equality check.int operator!= (const SoSFVec4b &field) constβ the opps of the above.void setValue (int8_t x, int8_t y, int8_t z, int8_t w)β set the vector from four values.void setValue (const int8_t xyzw[4])β set the vector from an array of four.
π Public Member Functions inherited from SoSField π
virtual ~SoSField ()β destructor, inherited, doing its quiet lil cleanup arc.
π Public Member Functions inherited from SoField π
look. this is a LOT. but every single one of these is part of the vibe, so here we go, no skipping, we don't do that here:
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 SoSField β
static void initClass (void)static SoType getClassTypeId (void)static void atexit_cleanup (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 Attributes π
SbVec4b valueβ the actual goods. the whole point. protect it at all costs.
π Additional Inherited Members π
Public Types inherited from SoField
enum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
Protected Member Functions inherited from SoSField
SoSField (void)
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
π Detailed Description π
so. SoSFVec4b is a container for an SbVec4b vector. that's the headline, that's the tweet.
you reach for this field when nodes, engines, or other field containers need to store a single vector with four elements. just one. singular. a single vector. no extras, no drama. π
heads up bestie β this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're porting to vanilla Inventor, this one's not coming with you. π
See also: SbVec4b, SoMFVec4b
Since: Coin 2.5
π¦ Member Function Documentation π¦
SoType SoSFVec4b::getTypeId (void ) const [virtual]
returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the "who am i, really" of Coin fields. β¨
See also: getClassTypeId(), SoType
Implements SoField.
void SoSFVec4b::copyFrom (const SoField & f) [virtual]
copy value(s) from f into this field. and listen β f must be of the same type as this field. don't try to be cute with mismatched types, it's not that kind of party. π
Implements SoField.
SbBool SoSFVec4b::isSame (const SoField & f) const [virtual]
check for equal type and value(s). type AND value. both. it's an and, not an or. π
Implements SoField.
void SoSFVec4b::setValue (int8_t x, int8_t y, int8_t z, int8_t w)
set value of vector. four values, in they go. slay. π
void SoSFVec4b::setValue (const int8_t xyzw[4])
set value of vector. same energy, array flavoured. π
π«Ά Author π«Ά
generated automatically by Doxygen for Coin from the source code. so technically the robot wrote it, and honestly? the robot ate. π
okay that's the whole page, you made it, i'm so proud of you. this was Coin Version 3.1.3, and the page is SoSFVec4b(3) β go forth and store exactly one four-element vector, bestie. mwah. πβ¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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