SoSFVec4b(3)

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

🌸 NAME 🌸

SoSFVec4b β€” the class that is literally just a container for an SbVec4b vector. that's it. that's the whole job description. one field, four little bytes, doing its lil thing flawlessly. πŸ’–


✨ SYNOPSIS ✨

okay so before ANY of this works you need the include, do not skip it, i will know:

#include <Inventor/fields/SoSFVec4b.h>

and it Inherits SoSField, which is giving major "my family has connections" energy but honestly? deserved. πŸ‘‘

🫢 Public Member Functions 🫢

  • virtual SoType getTypeId (void) const β€” tells you what type this thing is, uniquely.
  • virtual void copyFrom (const SoField &field) β€” copies the value(s) out of another field.
  • const SoSFVec4b & operator= (const SoSFVec4b &field) β€” assignment, but for whole fields.
  • virtual SbBool isSame (const SoField &field) const β€” are we the same type AND the same value? yes/no.
  • SbVec4b getValue (void) const β€” hand me the vector pls.
  • void setValue (SbVec4b newvalue) β€” here, take this vector instead.
  • SbVec4b operator= (SbVec4b newvalue) β€” same idea, operator flavoured.
  • int operator== (const SoSFVec4b &field) const β€” equality check.
  • int operator!= (const SoSFVec4b &field) const β€” the opps of the above.
  • void setValue (int8_t x, int8_t y, int8_t z, int8_t w) β€” set the vector from four values.
  • void setValue (const int8_t xyzw[4]) β€” set the vector from an array of four.

πŸ’œ Public Member Functions inherited from SoSField πŸ’œ

  • virtual ~SoSField () β€” destructor, inherited, doing its quiet lil cleanup arc.

πŸ’œ Public Member Functions inherited from SoField πŸ’œ

look. this is a LOT. but every single one of these is part of the vibe, so here we go, no skipping, we don't do that here:

  • 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 πŸ”

  • SbVec4b value β€” the actual goods. the whole point. protect it at all costs.

🌈 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

πŸ’… Detailed Description πŸ’…

so. SoSFVec4b is a container for an SbVec4b vector. that's the headline, that's the tweet.

you reach for this field when nodes, engines, or other field containers need to store a single vector with four elements. just one. singular. a single vector. no extras, no drama. πŸŽ€

heads up bestie β€” 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 to vanilla Inventor, this one's not coming with you. 😭

See also: SbVec4b, SoMFVec4b

Since: Coin 2.5


πŸ¦‹ Member Function Documentation πŸ¦‹

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

returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the "who am i, really" of Coin fields. ✨

See also: getClassTypeId(), SoType

Implements SoField.

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

copy value(s) from f into this field. and listen β€” f must be of the same type as this field. don't try to be cute with mismatched types, it's not that kind of party. πŸ™ˆ

Implements SoField.

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

check for equal type and value(s). type AND value. both. it's an and, not an or. πŸ”

Implements SoField.

void SoSFVec4b::setValue (int8_t x, int8_t y, int8_t z, int8_t w)

set value of vector. four values, in they go. slay. πŸ’…

void SoSFVec4b::setValue (const int8_t xyzw[4])

set value of vector. same energy, array flavoured. πŸ“


🫢 Author 🫢

generated automatically by Doxygen for Coin from the source code. so technically the robot wrote it, and honestly? the robot ate. πŸ‘‘


okay that's the whole page, you made it, i'm so proud of you. this was Coin Version 3.1.3, and the page is SoSFVec4b(3) β€” go forth and store exactly one four-element vector, bestie. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from