SoSFVec4d(3)

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

✨ SoSFVec4d ✨

okay bestie, gather round, because this one is literally a little box that holds one vector and it's the four-element kind. It lives in the Coin library (that's the 3 in SoSFVec4d(3), iykyk), and its whole personality is "single field, single value, no drama."

🌸 NAME 🌸

SoSFVec4d β€” the class that is a container for an SbVec4d vector. That's it. That's the job. πŸ‘‘


πŸ’– SYNOPSIS πŸ’–

#include <Inventor/fields/SoSFVec4d.h>

Inherits SoSField. So it's already got all the single-field genes from its parent, and it's adding the vector-holding glow-up on top. 🧬✨

πŸ‘‘ Public Member Functions πŸ‘‘

  • virtual SoType getTypeId (void) const
  • virtual void copyFrom (const SoField &field)
  • const SoSFVec4d & operator= (const SoSFVec4d &field)
  • virtual SbBool isSame (const SoField &field) const
  • const SbVec4d & getValue (void) const
  • void setValue (const SbVec4d &newvalue)
  • const SbVec4d & operator= (const SbVec4d &newvalue)
  • int operator== (const SoSFVec4d &field) const
  • int operator!= (const SoSFVec4d &field) const
  • void setValue (double x, double y, double z, double w)
  • void setValue (const double xyzw[4])

🫢 Public Member Functions inherited from SoSField

  • virtual ~SoSField ()

πŸ’œ Public Member Functions inherited from SoField

not me listing every single one, but the rules are the rules and we do not skip. here's the whole inheritance haul:

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

  • SbVec4d value β€” the actual vector, just chillin' in here, protected but 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 🌟

The SoSFVec4d class is a container for an SbVec4d vector. no cap, that's the whole thing. πŸ’–

This field is used where nodes, engines or other field containers need to store a single vector with four elements. Like, one (1) vector. four (4) doubles. a whole little quadruple of numbers in a trench coat. 🧚

See also SbVec4d, SoMFVec4d β€” one of those is the single version's sibling and one is the multi version, go peek if you're nosy.

Since β€” Coin 2.5. so it's been around a minute. vintage, but make it cute. πŸ“


πŸ”₯ Member Function Documentation πŸ”₯

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

Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the class's little ID card and it will be asked for it at the door. πŸͺͺ

See also getClassTypeId(), SoType

Implements SoField.

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

Copy value(s) from f into this field. heads up bestie: f must be of the same type as this field. do not try to sneak a different type in here, it will not go well for you. πŸ’€

Implements SoField.

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

Check for equal type and value(s). both. type and value. it's an and, not an or. 🫢

Implements SoField.

void SoSFVec4d::setValue (double x, double y, double z, double w)

Set value of vector. four doubles, one vibe. ✨

void SoSFVec4d::setValue (const double xyzw[4])

Set value of vector. same energy, but you hand it an array of 4 instead. 🌈


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for Coin from the source code. (not me writing my own author bio, the machines did that one, and honestly? slay.)


and that's the whole page, bestie, we ate and left no crumbs. πŸ’… this was Coin, Version 2.5.0, and the page is SoSFVec4d(3) β€” go forth and hold exactly one four-element vector with main character energy. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from