SoSFVec2b(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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) const
  • virtual void copyFrom (const SoField &field)
  • const SoSFVec2b & operator= (const SoSFVec2b &field)
  • virtual SbBool isSame (const SoField &field) const
  • SbVec2b getValue (void) const
  • void setValue (SbVec2b newvalue)
  • SbVec2b operator= (SbVec2b newvalue)
  • int operator== (const SoSFVec2b &field) const
  • int operator!= (const SoSFVec2b &field) const
  • void 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) 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

  • SbVec2b 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 πŸ’…

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