SoSFVec3d(3)
SoSFVec3d πβ¨
okay bestie, welcome to the Library Functions Manual π«Ά this one's from Coin, and it's literally just a little container that holds exactly one vector. one. single. vector. no cap.
NAME π
SoSFVec3d β the SoSFVec3d class is a container for an SbVec3d vector. that's it, that's the whole vibe π
SYNOPSIS π
#include <Inheritor/fields/SoSFVec3d.h>
wait no, bestie, let me not do you dirty β it's actually:
#include <Inventor/fields/SoSFVec3d.h>
and it Inherits SoSField. so it's part of the whole field family tree, iykyk πΈ
Public Member Functions β¨
the main character functions, right here π
virtual SoType getTypeId (void) constβ hands you the type ID so you know exactly which Coin field class this thing is π«virtual void copyFrom (const SoField &field)β copy the value(s) over from another field π«Άconst SoSFVec3d & operator= (const SoSFVec3d &field)β assignment operator, classicvirtual SbBool isSame (const SoField &field) constβ checks if type and value(s) matchconst SbVec3d & getValue (void) constβ gimme the vector plsvoid setValue (const SbVec3d &newvalue)β set the vector to a whole new valueconst SbVec3d & operator= (const SbVec3d &newvalue)β assign a vector straight into the fieldint operator== (const SoSFVec3d &field) constβ equality check, are y'all the sameint operator!= (const SoSFVec3d &field) constβ inequality check, are y'all not the samevoid setValue (const double x, const double y, const double z)β set the vector with three separate doublesvoid setValue (const double xyz[3])β set the vector from an array of three doubles
Public Member Functions inherited from SoSField π¦
virtual ~SoSField ()β the destructor, she's leaving π
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)β makes you a fresh instance, slaystatic SoType getClassTypeId (void)β the class-level type IDstatic void initClass (void)β set the class up, periodt
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 π
SbVec3d valueβ the actual vector, sitting right there, protected, mysterious, 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 π
okay so, the SoSFVec3d class is a container for an SbVec3d vector. literally its whole personality.
this field is used where nodes, engines or other field containers need to store a single vector with three elements. just one. three doubles. she's lowkey perfect at it π«Ά
See also
SoMFVec3fβ if you need the multi version, go look at her π
Member Function Documentation π
SoType SoSFVec3d::getTypeId (void ) const [virtual]
returns the type identification instance which uniquely identifies the Coin field class the object belongs to. so you can clock her in a crowd π
See also
getClassTypeId(),SoType
Implements SoField.
void SoSFVec3d::copyFrom (const SoField & f) [virtual]
copy value(s) from f into this field. f must be of the same type as this field. don't try it with a random field, bestie, it will not go well π
Implements SoField.
SbBool SoSFVec3d::isSame (const SoField & f) const [virtual]
check for equal type and value(s). both. she's thorough β¨
Implements SoField.
void SoSFVec3d::setValue (const double x, const double y, const double z)
set value of vector. three doubles, in, done π₯
void SoSFVec3d::setValue (const double xyz[3])
set value of vector. array flavour, same energy π
Author π«Ά
generated automatically by Doxygen for Coin from the source code. not a human, just vibes π
okay and for the cute sign-off: this whole thing came from Coin, Version 2.5.0, and it's filed under SoSFVec3d(3). go forth and store exactly one three-element vector, bestie. you got this πβ¨πΈ
π¦ 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