SoSFVec2b(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– SoSFVec2b πŸ’– β€” the Library Functions Manual glow-up

okay bestie, sit down, hydrate, because today we're learning about SoSFVec2b and it's genuinely not that deep but it IS iconic. this is a page from the SoSFVec2b(3) manual, and I'm about to make it make sense. 🫢


🌸 NAME 🌸

SoSFVec2b β€” the SoSFVec2b class is a container for an SbVec2b vector. that's it. that's the whole job. she holds one lil two-element vector and she holds it well. πŸ’…


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFVec2b.h>

Inherits 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 def)
  • SbBool isDefault (void) const
  • SbBool isOfType (const SoType type) const
  • void enableConnection (SbBool flag)
  • SbBool isConnectionEnabled (void) const
  • SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=0, SbBool append=0)
  • SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=0)
  • void disconnect (SoEngineOutput *engineoutput)
  • SbBool isConnectedFromEngine (void) const
  • SbBool getConnectedEngine (SoEngineOutput *&master) const
  • SbBool connectFrom (SoField *master, SbBool notnotify=0, SbBool append=0)
  • SbBool appendConnection (SoField *master, SbBool notnotify=0)
  • 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 *in, 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 Public Member Functions inherited from SoField πŸ“

  • static void initClass (void)
  • static void initClasses (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=1)
    • virtual void evaluateConnection (void) const
    • virtual SbBool readConnection (SoInput *in)
    • virtual void writeConnection (SoOutput *out) const
    • SbBool isDestructing (void) const

🧚 Detailed Description 🧚

The SoSFVec2b class is a container for an SbVec2b vector.

This field is used where nodes, engines or other field containers needs to store a single vector with two elements. like, one (1) vector. two (2) elements. she's a single-field girlie, not a multi-field mess. ✨

See also

  • SbVec2b, SoMFVec2b

Since

  • Coin 2.5

πŸ”₯ Member Function Documentation πŸ”₯

SoType SoSFVec2b::getTypeId (void ) const [virtual]

Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's her ID card, her little "yes I belong here" moment. πŸ‘‘

See also

  • getClassTypeId(), SoType

Implements SoField.

void SoSFVec2b::copyFrom (const SoField & f) [virtual]

Copy value(s) from f into this field. f must be of the same type as this field.

⚠️ bestie listen β€” f must be the same type as this field. don't try to sneak a different type in there, it's not gonna vibe.

Implements SoField.

SbBool SoSFVec2b::isSame (const SoField & f) const [virtual]

Check for equal type and value(s). she's checking if y'all are actually twinning, type AND values, no half-measures. πŸ’…

Implements SoField.

void SoSFVec2b::setValue (int8_t x, int8_t y)

Set value of vector. feed her an x and a y and she's set. πŸŽ€

void SoSFVec2b::setValue (const int8_t xy[2])

Set value of vector. same energy, but this time you're handing over the whole xy[2] array at once. slay. ✨


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. not a human author, just a robot doing her lil thing and honestly? respect. πŸ€–πŸ’–


and that's the whole page bestie!! this was Coin, Version 2.5.0 β€” SoSFVec2b(3), brought to you with love, vectors, and zero cap. go forth and store your two-element vectors responsibly. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from