SOSFVEC3F(3iv)

πŸ’– SoSFVec3f πŸ’–

okay bestie, welcome to the SoSFVec3f page, from the 3IV manual β€” yes that's the whole vibe, let's GO ✨

🌸 NAME 🌸

SoSFVec3f β€” a field holding a three-dimensional vector. that's it. that's the girl. πŸ’…

πŸ¦‹ INHERITS FROM πŸ¦‹

SoField > SoSField > SoSFVec3f

so she's the great-grandbaby of SoField, and she's carrying the whole single-value field bloodline on her back. iconic honestly πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFVec3f.h>

Methods from class SoSFVec3f:

void                setValue(float x, float y, float z)
void                setValue(const float xyz[3])
static SoType       getClassTypeId()
virtual void        getTypeId() const
const SbVec3f &     getValue() const
const SbVec3f &     operator =(const SbVec3f & newValue)
void                setValue(const SbVec3f & newValue)
int                 operator ==(const SoSFVec3f &f) const
int                 operator !=(const SoSFVec3f &f) const

Methods from class SoField:

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 πŸ’œ

so like, it's a field. and it contains a three-dimensional vector. main character energy from start to finish, no notes 🫢

and the way she writes herself to file? SoSFVec3fs are written to file as three floating point values separated by whitespace. three little floats, all spaced out, minding their own business. slay πŸŽ€


🌈 METHODS 🌈

  • void setValue(float x, float y, float z)
  • void setValue(const float xyz[3])

sets the field to the given value. you hand it the goods, it becomes the goods. periodt ✨

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

returns the type for this class, or for a particular object of this class. type-checking her way through life, fr fr πŸ’…

  • const SbVec3f & getValue() const

returns this field's value. that's the whole errand. go get your vector bestie πŸ’–

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

sets this field to newValue. lowkey the same assignment, two different entrances. we love options πŸ™ˆ

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

returns TRUE if f is of the same type and has the same value as this field. so it's not enough to just show up β€” you gotta match. both boxes checked or it's a no from her πŸ’€


🌟 SEE ALSO 🌟

SoField, SoSField, SoMFVec3f

if you liked this page you'll be obsessed with these three, iykyk 🧚


okay that's the whole page!! this was the SoSFVec3f(3IV) situation, brought to you by the 3IV manual itself β€” no date, no version, just vibes and a header/footer that both say SoSFVec3f(3IV)(). stay safe, stay type-checked, mwah πŸ’‹πŸŒΈ