SOSFVEC2F(3iv)

πŸ’– SoSFVec2f πŸ’–

okay bestie, welcome to the SoSFVec2f page from the 3IV manual β€” yes that's the manual name, we're keeping it, it's iconic πŸ’…


✨ NAME ✨

SoSFVec2f β€” a field that's holding a whole two-dimensional vector, and she's thriving πŸ¦‹


🌸 INHERITS FROM 🌸

SoField > SoSField > SoSFVec2f

like... the family tree ate, no cap πŸ‘‘


⭐ SYNOPSIS ⭐

#include <Inventor/fields/SoSFVec2f.h>

Methods from class SoSFVec2f:

void                setValue(float x, float y)
void                setValue(const float xy[2])
static SoType       getClassTypeId()
virtual void        getTypeId() const
const SbVec2f &     getValue() const
const SbVec2f &     operator =(const SbVec2f & newValue)
void                setValue(const SbVec2f & newValue)
int                 operator ==(const SoSFVec2f &f) const
int                 operator !=(const SoSFVec2f &f) const

Methods from class SoField (the inheritance giving, we love to see it):

void                setIgnored(SbBool ignore)
SbBool              isIgnored() const
SbBool              isDefault() const
virtual SbBool      isOfType(SoType type) const
SbBool              set(const char *valueString)
void                get(SbString &valueString)
void                touch()
SbBool              connectFrom(SoField *fromField)
SbBool              connectFrom(SoEngineOutput *fromEngine)
void                disconnect()
SbBool              isConnected() const
SbBool              isConnectedFromField() const
SbBool              getConnectedField(SoField *&writingField) const
SbBool              isConnectedFromEngine() const
SbBool              getConnectedEngine(SoEngineOutput *&engineOutput)
                         const
void                enableConnection(SbBool flag)
SbBool              isConnectionEnabled() const
int                 getForwardConnections(SoFieldList &list) const
SoFieldContainer *  getContainer() const

πŸŽ€ DESCRIPTION πŸŽ€

Bestie. It's a field containing a two-dimensional vector. That's the whole vibe. ✨

When an SoSFVec2f gets written out to a file, it shows up as a pair of floating point values separated by whitespace. so like, two lil numbers, vibing, space between them, periodt πŸ’«


πŸ’… METHODS πŸ’…

  • void setValue(float x, float y)
  • void setValue(const float xy[2])

Sets the field to the given value. drop the numbers in, she's set, done 🫢

  • static SoType getClassTypeId()
  • virtual void getTypeId() const

Returns the type for this class, or for a particular object of this class. iykyk β€” one's for the class, one's for the specific instance πŸ’–

  • const SbVec2f & getValue() const

Returns this field's value. hand it over queen πŸ‘‘

  • const SbVec2f & operator =(const SbVec2f & newValue)
  • void setValue(const SbVec2f & newValue)

Sets this field to newValue. same energy, two ways in 🌈

  • int operator ==(const SoSFVec2f &f) const
  • int operator !=(const SoSFVec2f &f) const

Returns TRUE if f is of the same type and has the same value as this field. both boxes gotta be checked bestie, no shortcuts πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

SoField, SoSField, SoMFVec2f


lowkey if you're messing with vectors in the multi-version (SoMFVec2f) you already know what time it is 😭

okay that's the whole page, thanks for coming to my ted talk β€” this was SoSFVec2f(3IV)() from the 3IV manual, mwah πŸ’‹ πŸŽ€βœ¨