SoSFVec3d(3)

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

SoSFVec3d πŸ’–βœ¨

okay bestie, welcome to the Library Functions Manual 🫢 this one's from Coin, and it's literally just a little container that holds exactly one vector. one. single. vector. no cap.


NAME 🌈

SoSFVec3d β€” the SoSFVec3d class is a container for an SbVec3d vector. that's it, that's the whole vibe πŸ’…


SYNOPSIS πŸŽ€

#include <Inheritor/fields/SoSFVec3d.h>

wait no, bestie, let me not do you dirty β€” it's actually:

#include <Inventor/fields/SoSFVec3d.h>

and it Inherits SoSField. so it's part of the whole field family tree, iykyk 🌸


Public Member Functions ✨

the main character functions, right here πŸ‘‘

  • virtual SoType getTypeId (void) const β€” hands you the type ID so you know exactly which Coin field class this thing is πŸ’«
  • virtual void copyFrom (const SoField &field) β€” copy the value(s) over from another field 🫢
  • const SoSFVec3d & operator= (const SoSFVec3d &field) β€” assignment operator, classic
  • virtual SbBool isSame (const SoField &field) const β€” checks if type and value(s) match
  • const SbVec3d & getValue (void) const β€” gimme the vector pls
  • void setValue (const SbVec3d &newvalue) β€” set the vector to a whole new value
  • const SbVec3d & operator= (const SbVec3d &newvalue) β€” assign a vector straight into the field
  • int operator== (const SoSFVec3d &field) const β€” equality check, are y'all the same
  • int operator!= (const SoSFVec3d &field) const β€” inequality check, are y'all not the same
  • void setValue (const double x, const double y, const double z) β€” set the vector with three separate doubles
  • void setValue (const double xyz[3]) β€” set the vector from an array of three doubles

Public Member Functions inherited from SoSField πŸ¦‹

  • virtual ~SoSField () β€” the destructor, she's leaving πŸ’€

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) β€” makes you a fresh instance, slay
  • static SoType getClassTypeId (void) β€” the class-level type ID
  • static void initClass (void) β€” set the class up, periodt

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 πŸ“

  • SbVec3d value β€” the actual vector, sitting right there, protected, mysterious, iconic πŸ’œ

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

okay so, the SoSFVec3d class is a container for an SbVec3d vector. literally its whole personality.

this field is used where nodes, engines or other field containers need to store a single vector with three elements. just one. three doubles. she's lowkey perfect at it 🫢

See also

  • SoMFVec3f β€” if you need the multi version, go look at her πŸ‘€

Member Function Documentation πŸ“–

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

returns the type identification instance which uniquely identifies the Coin field class the object belongs to. so you can clock her in a crowd πŸ’…

See also

  • getClassTypeId(), SoType

Implements SoField.

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

copy value(s) from f into this field. f must be of the same type as this field. don't try it with a random field, bestie, it will not go well πŸ™ˆ

Implements SoField.

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

check for equal type and value(s). both. she's thorough ✨

Implements SoField.

void SoSFVec3d::setValue (const double x, const double y, const double z)

set value of vector. three doubles, in, done πŸ”₯

void SoSFVec3d::setValue (const double xyz[3])

set value of vector. array flavour, same energy πŸŽ€


Author 🫢

generated automatically by Doxygen for Coin from the source code. not a human, just vibes πŸ’€


okay and for the cute sign-off: this whole thing came from Coin, Version 2.5.0, and it's filed under SoSFVec3d(3). go forth and store exactly one three-element vector, bestie. you got this πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from