SoSFVec2f(3)
π SoSFVec2f β ok bestie, let's talk vectors π
So this is the Coin manual page for SoSFVec2f(3), and honestly? It's a little baddie. Let's get into it. π¦
β¨ NAME β¨
SoSFVec2f β the class that is a container for an SbVec2f vector. That's it. That's the whole job. Iconic, honestly. π
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFVec2f.h>
Inherits SoSField.
π Public Member Functions π
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoSFVec2f & operator= (const SoSFVec2f &field)
virtual SbBool isSame (const SoField &field) const
const SbVec2f & getValue (void) const
void setValue (const SbVec2f &newvalue)
const SbVec2f & operator= (const SbVec2f &newvalue)
int operator== (const SoSFVec2f &field) const
int operator!= (const SoSFVec2f &field) const
void setValue (float x, float y)
void setValue (const float xy[2])
π«Ά Public Member Functions inherited from SoSField π«Ά
virtual ~SoSField ()
π Public Member Functions inherited from SoField π
not me listing every single one of these, but we're doing it because details are the moment β¨
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 β
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 π₯
SbVec2f 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=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 SoSFVec2f is a container for an SbVec2f vector. Simple, clean, does exactly what it says on the tin. β¨
You reach for this field whenever nodes, engines or other field containers need to store a single vector with two elements. Just one. Singular. Not a whole list of them β that's a different girl (see below, bestie). π
See also
SoMFVec2fβ that's the multi-field version, iykyk πΈ
π Member Function Documentation π
void * SoSFVec2f::createInstance (void ) [static]
Heads up bestie: this API member is considered internal to the library, as it is not likely to be of interest to the application programmer. So likeβ¦ look but don't touch. π
Creates a new instance of the class type corresponding to the SoType object. β¨
SoType SoSFVec2f::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. π¦
SoType SoSFVec2f::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. Very main character energy, honestly. π
Implements SoField.
void SoSFVec2f::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. Heads up: f must be of the same type as this field. No mixing, no matching, periodt. π
Implements SoField.
SbBool SoSFVec2f::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). A lil vibe check, if you will. β
Implements SoField.
void SoSFVec2f::initClass (void ) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system. π οΈ
void SoSFVec2f::setValue (float x, float y)
Set value of vector. That's the whole thing. Slay. π
void SoSFVec2f::setValue (const float xy[2])
Set value of vector. Same energy, different signature β she contains multitudes. β¨
π Author π
Generated automatically by Doxygen for Coin from the source code. The robots did this one, and honestly? They ate. π€π
Version 4.0.10 Β· Thu Jun 25 2026 00:00:00 β ok that's the whole page bestie, you're officially an SoSFVec2f expert, go forth and store exactly one two-element vector π¦πβ¨ π
π¦ 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