SoSFVec3f(3)
π NAME π
bestie. okay so. SoSFVec3f β it's a container for an SbVec3f vector. that's the whole job. a little box that holds exactly one 3D vector. iconic behavior honestly π
this page is SoSFVec3f(3) and it lives in the Library Functions Manual β¨
β¨ SYNOPSIS β¨
first of all, the include. you gotta have it or nothing works, fr fr:
#include <Inventor/fields/SoSFVec3f.h>
oh and btw, it Inherits SoSField. family tree matters here π«Ά
π Public Member Functions π
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFVec3f & operator= (const SoSFVec3f &field)virtual SbBool isSame (const SoField &field) constconst SbVec3f & getValue (void) constvoid setValue (const SbVec3f &newvalue)const SbVec3f & operator= (const SbVec3f &newvalue)int operator== (const SoSFVec3f &field) constint operator!= (const SoSFVec3f &field) constvoid setValue (const float x, const float y, const float z)void setValue (const float xyz[3])
πΈ Public Member Functions inherited from SoSField πΈ
virtual ~SoSField ()
π¦ 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)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 π
SbVec3f value
π 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 πΈ
no cap, the SoSFVec3f class is a container for an SbVec3f vector. that's it, that's the tea π
so where do you even use this? anywhere a node, engine or other field container needs to store a single vector with three elements. one vector. three elements. very demure, very mindful π§
See also
SoMFVec3f
side note bestie: if you wanted many vectors instead of one, that's theSoMFVec3fsituation. theSFis single, theMFis multi. iykyk π
π₯ Member Function Documentation π₯
SoType SoSFVec3f::getTypeId (void ) const [virtual]
gives you back the type identification instance that uniquely identifies which Coin field class this object belongs to. like a little ID card but for types π
See also
getClassTypeId(),SoType
Implements SoField.
void SoSFVec3f::copyFrom (const SoField & f) [virtual]
copies the value(s) from f into this field. important: f must be of the same type as this field. don't try to sneak a different type in here, it will not slay π
Implements SoField.
SbBool SoSFVec3f::isSame (const SoField & f) const [virtual]
checks for equal type and value(s). both. type AND value. it's thorough π
Implements SoField.
void SoSFVec3f::setValue (const float x, const float y, const float z)
sets the value of the vector. three floats, in, out, done β¨
void SoSFVec3f::setValue (const float xyz[3])
sets the value of the vector. this time you're handing it an array of 3 instead π¦
π«Ά Author π«Ά
Generated automatically by Doxygen for Coin from the source code. (not a human, just a very diligent robot π)
okay that's the whole page bestie!! and for the cute sign-off: this was Coin, Version 2.5.0, and it's filed under SoSFVec3f(3). go forth and store exactly one 3D vector, you absolute icon ππβ¨
π¦ 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