SoSFVec4s(3)
π SoSFVec4s π
okay bestie, sit down, hydrate, because we're doing the Coin manual page for SoSFVec4s β section 3 of the manual, iykyk β and it's genuinely iconic. It's a tiny little container class and honestly it's serving main character energy for exactly one (1) job. Let's get into it. π«Ά
π NAME π
SoSFVec4s β the class is literally a container for an SbVec4s vector. that's it. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
First things first, you gotta pull it in:
#include <Inventor/fields/SoSFVec4s.h>
And lowkey important: it inherits SoSField. so everything SoSField can do, it can do too. nepotism but make it C++. π
β¨ Public Member Functions β¨
here's everything this class brings to the group chat:
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoSFVec4s & operator= (const SoSFVec4s &field)
virtual SbBool isSame (const SoField &field) const
const SbVec4s & getValue (void) const
void setValue (const SbVec4s &newvalue)
const SbVec4s & operator= (const SbVec4s &newvalue)
int operator== (const SoSFVec4s &field) const
int operator!= (const SoSFVec4s &field) const
void setValue (short x, short y, short z, short w)
void setValue (const short xyzw[4])
π¦ Public Member Functions inherited from SoSField π¦
the stuff it got from its parent, no notes:
virtual ~SoSField ()
π Public Member Functions inherited from SoField π
and here's the whole inheritance haul from SoField β yes it's long, no we're not skipping it, every single one matters:
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 π
these ones you can call without even having an object, periodt:
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 π
the actual goods, tucked away safely:
SbVec4s value
π§ Additional Inherited Members π§
Public Types inherited from SoField
an enum, bestie:
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) const
virtual SbBool readConnection (SoInput *in)
virtual void writeConnection (SoOutput *out) const
SbBool isDestructing (void) const
virtual SoNotRec createNotRec (SoBase *cont)
π Detailed Description π
okay so, the lore: SoSFVec4s is a container for an SbVec4s vector. one field, one vector, four elements, no drama. π
You reach for this field whenever nodes, engines or other field containers need to hold onto a single vector with four elements. that's the use case. that's the assignment.
See also:SbVec4s,SoMFVec4s. but β οΈ heads up bestie, be aware that 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 backwards, that's a you problem and it will not slay. π
Since: Coin 2.5 β vintage, but make it cute. π
π Member Function Documentation π
void * SoSFVec4s::createInstance (void ) [static]
okay so this API member is considered internal to the library, as in it's not likely to be of interest to the application programmer. so likeβ¦ not for you, bestie, but we still show it respect. π
What it does: creates a new instance of the class type corresponding to the SoType object. iconic factory behaviour, no cap.
SoType SoSFVec4s::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. it's the "who am I in the type system" moment. π«
SoType SoSFVec4s::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. literally the vibe check of the type system. π¦
Implements SoField.
void SoSFVec4s::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. And important caveat: f must be of the same type as this field. no mixing, no blending, no "close enough". be so serious. π
Implements SoField.
SbBool SoSFVec4s::isSame (const SoField & f) const [virtual]
Checks for equal type and value(s). so it's the "are we the same tho" function. π«Ά
Implements SoField.
void SoSFVec4s::initClass (void ) [static]
Internal method, called upon initialization of the library (from SoDB::init()), and its whole job is to set up the type system. backstage crew behaviour β never on stage, always essential. π
void SoSFVec4s::setValue (short x, short y, short z, short w)
Set value of vector. β¨ four shorts walk into a bar: x, y, z, w.
void SoSFVec4s::setValue (const short xyzw[4])
Set value of vector. πΈ the array flavour β hand it an xyzw array of 4 and you're done.
βοΈ Author βοΈ
Generated automatically by Doxygen for Coin from the source code. so technically the author is a robot and honestly? it ate. π€π
and that's the whole page bestie, we made it π«Ά this was the Coin manual, SoSFVec4s in section 3, from Version 4.0.10, dated Thu Jun 25 2026 00:00:00. go forth and store exactly one four-element vector. slay. β¨ππ
π¦ 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