SoSFVec2b(3)
π SoSFVec2b π
okay bestie so this is a page from the Coin manual, and the star of the show is a class called SoSFVec2b β a lil container that holds exactly one SbVec2b vector. that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
SoSFVec2b β the class that is literally just a container for an SbVec2b vector. one field, one vector, two elements, iconic behavior π
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoSFVec2b.h>
it inherits from SoSField π«Ά
π Public Member Functions
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFVec2b & operator= (const SoSFVec2b &field)virtual SbBool isSame (const SoField &field) constSbVec2b getValue (void) constvoid setValue (SbVec2b newvalue)SbVec2b operator= (SbVec2b newvalue)int operator== (const SoSFVec2b &field) constint operator!= (const SoSFVec2b &field) constvoid setValue (int8_t x, int8_t y)void setValue (const int8_t xy[2])
π¦ 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 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
SbVec2b value
πΈ Additional Inherited Members
- Public Types inherited from
SoFieldenum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
- Protected Member Functions inherited from
SoSFieldSoSField (void)
- Protected Member Functions inherited from
SoFieldSoField (void)void valueChanged (SbBool resetdefault=TRUE)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) constvirtual SoNotRec createNotRec (SoBase *cont)
π Detailed Description π
so SoSFVec2b is a container for an SbVec2b vector, fr fr. that's the whole personality π
you'd reach for this field when a node, an engine, or literally any other field container needs to hold a single vector with two elements. one vector. two elements. no notes β¨
π See also
SbVec2b, SoMFVec2b
heads up bestie β be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're porting somewhere old-school, she's not coming with you π
π Since
Coin 2.5 π
π₯ Member Function Documentation π₯
void * SoSFVec2b::createInstance (void ) [static]
okay so this one is considered internal to the library, like it's not really likely to be of interest to the application programmer. it creates a new instance of the class type corresponding to the SoType object. iykyk π«Ά
SoType SoSFVec2b::getClassTypeId (void ) [static]
this static method hands you back the SoType object associated with objects of this class. classic β
SoType SoSFVec2b::getTypeId (void ) const [virtual]
returns the type identification of an object derived from a class inheriting SoField. this is what powers runtime type checking and that "downward" casting moment π
implements SoField.
void SoSFVec2b::copyFrom (const SoField & f) [virtual]
copies the value(s) from f into this field. f must be of the same type as this field β no mixing, bestie, that's the rule π«
implements SoField.
SbBool SoSFVec2b::isSame (const SoField & f) const [virtual]
checks for equal type and value(s). simple as that β¨
implements SoField.
void SoSFVec2b::initClass (void ) [static]
internal method that gets called when the library initializes (from SoDB::init()) so it can set up the type system. behind-the-scenes queen π
void SoSFVec2b::setValue (int8_t x, int8_t y)
sets the value of the vector. π
void SoSFVec2b::setValue (const int8_t xy[2])
sets the value of the vector. π (yes, again β this is the int8_t xy[2] flavor, not the x, y flavor, and both are valid, slay)
π Author π
generated automatically by Doxygen for Coin, straight from the source code. not me getting auto-generated by a documentation tool, that's so real π«Ά
and that's the whole page, bestie! this lil doc is Version 4.0.10 and it's dated Thu Jun 25 2026 00:00:00 β and it's the manual page for SoSFVec2b(3). periodt π
β¨
π¦ 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