SoSFVec2f(3)
π SoSFVec2f π
okay so bestie, welcome to the manual page for SoSFVec2f β that's section 3 of the Library Functions Manual, if you're keeping track. It's a whole vibe and honestly? It's giving "tiny container, big feelings." Let's get into it. π¦
β¨ NAME β¨
SoSFVec2f β the class that's literally a container for an SbVec2f vector. That's it. That's the whole job. π
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFVec2f.h>
Inherits SoSField.
π« Public Member Functions π«
virtual SoType getTypeId (void) constβ hands you the type id, no capvirtual void copyFrom (const SoField &field)β copies from another fieldconst SoSFVec2f & operator= (const SoSFVec2f &field)β assignment from anotherSoSFVec2fvirtual SbBool isSame (const SoField &field) constβ same type AND same value? checks itconst SbVec2f & getValue (void) constβ gives you the vectorvoid setValue (const SbVec2f &newvalue)β sets the vectorconst SbVec2f & operator= (const SbVec2f &newvalue)β assigns a bareSbVec2finint operator== (const SoSFVec2f &field) constβ equality check, field vs fieldint operator!= (const SoSFVec2f &field) constβ inequality check, field vs fieldvoid setValue (float x, float y)β sets the vector from two floatsvoid setValue (const float xy[2])β sets the vector from an array
π Public Member Functions inherited from SoSField π
virtual ~SoSField ()β the destructor, doing its lil cleanup thing
π«Ά Public Member Functions inherited from SoField π«Ά
like, there are SO many of these, but I'm not skipping a single one, periodt:
virtual ~SoField ()void setIgnored (SbBool ignore)SbBool isIgnored (void) constvoid setDefault (SbBool defaultVal)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)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 *input, 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 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β the actual vector, just chillin' in there, protected
π 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) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
π Detailed Description π
okay so here's the tea: the SoSFVec2f class is a container for an SbVec2f vector. π
You reach for this field whenever nodes, engines, or other field containers need to hold a single vector with two elements. Single. One. Not a list, not a whole array, just the one lil vector, and honestly? iconic behavior.
See also: SoMFVec2f β that's the multi-version if you need the whole squad instead of just one. π«Ά
π§ Member Function Documentation π§
SoType SoSFVec2f::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. iykyk. β¨
See also: getClassTypeId(), SoType
Implements SoField.
void SoSFVec2f::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. bestie, f must be of the same type as this field β no mixing, we don't do that here. π
Implements SoField.
SbBool SoSFVec2f::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). Both. Type AND value. It's thorough like that. π
Implements SoField.
void SoSFVec2f::setValue (float x, float y)
Set value of vector. two floats walk in, one vector walks out. π¦
void SoSFVec2f::setValue (const float xy[2])
Set value of vector. same energy, but you're handing over an array of two. β¨
π Author π
Generated automatically by Doxygen for Coin from the source code. (Not a human, just a robot doing its lil documentation thing. slay.)
and that's the whole page, bestie!! π this was Coin Version 3.1.3, documented for SoSFVec2f(3) β thanks for reading all the way to the end, you're literally the main character. bye bye, mwah ππ¦β¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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