SoSFVec3f(3)

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

πŸŽ€ NAME πŸŽ€

bestie. okay so. SoSFVec3f β€” it's a container for an SbVec3f vector. that's the whole job. a little box that holds exactly one 3D vector. iconic behavior honestly πŸ’…

this page is SoSFVec3f(3) and it lives in the Library Functions Manual ✨


✨ SYNOPSIS ✨

first of all, the include. you gotta have it or nothing works, fr fr:

#include <Inventor/fields/SoSFVec3f.h>

oh and btw, it Inherits SoSField. family tree matters here 🫢

πŸ’– Public Member Functions πŸ’–

  • virtual SoType getTypeId (void) const
  • virtual void copyFrom (const SoField &field)
  • const SoSFVec3f & operator= (const SoSFVec3f &field)
  • virtual SbBool isSame (const SoField &field) const
  • const SbVec3f & getValue (void) const
  • void setValue (const SbVec3f &newvalue)
  • const SbVec3f & operator= (const SbVec3f &newvalue)
  • int operator== (const SoSFVec3f &field) const
  • int operator!= (const SoSFVec3f &field) const
  • void setValue (const float x, const float y, const float z)
  • void setValue (const float xyz[3])

🌸 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 πŸŽ€

  • SbVec3f 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 🌸

no cap, the SoSFVec3f class is a container for an SbVec3f vector. that's it, that's the tea πŸ“

so where do you even use this? anywhere a node, engine or other field container needs to store a single vector with three elements. one vector. three elements. very demure, very mindful 🧚

See also

  • SoMFVec3f
side note bestie: if you wanted many vectors instead of one, that's the SoMFVec3f situation. the SF is single, the MF is multi. iykyk πŸ’…

πŸ”₯ Member Function Documentation πŸ”₯

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

gives you back the type identification instance that uniquely identifies which Coin field class this object belongs to. like a little ID card but for types πŸ‘‘

See also

  • getClassTypeId(), SoType

Implements SoField.

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

copies the value(s) from f into this field. important: f must be of the same type as this field. don't try to sneak a different type in here, it will not slay 😭

Implements SoField.

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

checks for equal type and value(s). both. type AND value. it's thorough πŸ’–

Implements SoField.

void SoSFVec3f::setValue (const float x, const float y, const float z)

sets the value of the vector. three floats, in, out, done ✨

void SoSFVec3f::setValue (const float xyz[3])

sets the value of the vector. this time you're handing it an array of 3 instead πŸ¦‹


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. (not a human, just a very diligent robot πŸŽ€)


okay that's the whole page bestie!! and for the cute sign-off: this was Coin, Version 2.5.0, and it's filed under SoSFVec3f(3). go forth and store exactly one 3D vector, you absolute icon πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from