SoSFVec4d(3)
β¨ SoSFVec4d β¨
okay bestie, gather round, because this one is literally a little box that holds one vector and it's the four-element kind. It lives in the Coin library (that's the 3 in SoSFVec4d(3), iykyk), and its whole personality is "single field, single value, no drama."
πΈ NAME πΈ
SoSFVec4d β the class that is a container for an SbVec4d vector. That's it. That's the job. π
π SYNOPSIS π
#include <Inventor/fields/SoSFVec4d.h>
Inherits SoSField. So it's already got all the single-field genes from its parent, and it's adding the vector-holding glow-up on top. π§¬β¨
π Public Member Functions π
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFVec4d & operator= (const SoSFVec4d &field)virtual SbBool isSame (const SoField &field) constconst SbVec4d & getValue (void) constvoid setValue (const SbVec4d &newvalue)const SbVec4d & operator= (const SbVec4d &newvalue)int operator== (const SoSFVec4d &field) constint operator!= (const SoSFVec4d &field) constvoid setValue (double x, double y, double z, double w)void setValue (const double xyzw[4])
π«Ά Public Member Functions inherited from SoSField
virtual ~SoSField ()
π Public Member Functions inherited from SoField
not me listing every single one, but the rules are the rules and we do not skip. here's the whole inheritance haul:
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)static SoType getClassTypeId (void)static void initClass (void)
π Static Public Member Functions inherited from SoSField
static void initClass (void)static SoType getClassTypeId (void)
π¦ Static Public Member Functions inherited from SoField
static void initClass (void)static void initClasses (void)static SoType getClassTypeId (void)
π Protected Attributes π
SbVec4d valueβ the actual vector, just chillin' in here, protected but iconic.
π 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=1)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
π Detailed Description π
The SoSFVec4d class is a container for an SbVec4d vector. no cap, that's the whole thing. π
This field is used where nodes, engines or other field containers need to store a single vector with four elements. Like, one (1) vector. four (4) doubles. a whole little quadruple of numbers in a trench coat. π§
See also SbVec4d, SoMFVec4d β one of those is the single version's sibling and one is the multi version, go peek if you're nosy.
Since β Coin 2.5. so it's been around a minute. vintage, but make it cute. π
π₯ Member Function Documentation π₯
SoType SoSFVec4d::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the class's little ID card and it will be asked for it at the door. πͺͺ
See also getClassTypeId(), SoType
Implements SoField.
void SoSFVec4d::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. heads up bestie: f must be of the same type as this field. do not try to sneak a different type in here, it will not go well for you. π
Implements SoField.
SbBool SoSFVec4d::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). both. type and value. it's an and, not an or. π«Ά
Implements SoField.
void SoSFVec4d::setValue (double x, double y, double z, double w)
Set value of vector. four doubles, one vibe. β¨
void SoSFVec4d::setValue (const double xyzw[4])
Set value of vector. same energy, but you hand it an array of 4 instead. π
π Author π
Generated automatically by Doxygen for Coin from the source code. (not me writing my own author bio, the machines did that one, and honestly? slay.)
and that's the whole page, bestie, we ate and left no crumbs. π
this was Coin, Version 2.5.0, and the page is SoSFVec4d(3) β go forth and hold exactly one four-element vector with main character energy. πβ¨π¦
π¦ 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