SoSFVec2s(3)

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

πŸ’– SoSFVec2s β€” the manual page, but make it cute πŸ’–

ok so bestie, welcome to the SoSFVec2s page from the Library Functions Manual (section 3, we love a library call). This class is a container for an SbVec2s vector, and yes she is serving exactly one (1) job and doing it flawlessly. πŸ’…


🌸 NAME 🌸

SoSFVec2s β€” the class that is literally a container for an SbVec2s vector. that's it. that's the whole name. iconic.


✨ SYNOPSIS ✨

#include <Inventor/fields/SoSFVec2s.h>

Inherits SoSField.

πŸŽ€ Public Member Functions πŸŽ€

virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoSFVec2s & operator= (const SoSFVec2s &field)
virtual SbBool isSame (const SoField &field) const
SbVec2s getValue (void) const
void setValue (SbVec2s newvalue)
SbVec2s operator= (SbVec2s newvalue)
int operator== (const SoSFVec2s &field) const
int operator!= (const SoSFVec2s &field) const
void setValue (short x, short y)
void setValue (const short xy[2])

πŸ’œ 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 defaultVal)
SbBool isDefault (void) const
SbBool isOfType (const SoType type) const
void enableConnection (SbBool flag)
SbBool isConnectionEnabled (void) const
SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE,
    SbBool append=FALSE)
SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)
void disconnect (SoEngineOutput *engineoutput)
SbBool isConnectedFromEngine (void) const
SbBool getConnectedEngine (SoEngineOutput *&master) const
SbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool
    append=FALSE)
SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)
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 *input, 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 void atexit_cleanup (void)

πŸ’œ Static Public Member Functions inherited from SoField

static void initClass (void)
static void initClasses (void)
static void cleanupClass (void)
static SoType getClassTypeId (void)

🌈 Protected Attributes 🌈

SbVec2s 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=TRUE)
virtual void evaluateConnection (void) const
virtual SbBool readConnection (SoInput *in)
virtual void writeConnection (SoOutput *out) const
SbBool isDestructing (void) const

πŸ‘‘ Detailed Description πŸ‘‘

ok so real talk: the SoSFVec2s class is a container for an SbVec2s vector. periodt.

You reach for this field whenever nodes, engines, or other field containers need to store a single vector with two elements. one vector. two elements. no more, no less. she's a single-field, she's not a multi-field, know the difference bestie. πŸ’…

See also: SoMFVec2s β€” and heads up, be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're out here porting ancient SGI code, that's an iykyk moment. πŸ™ˆ

Since: Coin 2.0 (an elder, but a legend ✨)


🧚 Member Function Documentation 🧚

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

Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. like a little name tag but for types. adorable.

See also: getClassTypeId(), SoType

Implements SoField.

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

Copy value(s) from f into this field. f must be of the same type as this field β€” no mixing, no matching, we don't do that here. 🚫

Implements SoField.

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

Check for equal type and value(s). basically the vibe check function. πŸ’€

Implements SoField.

void SoSFVec2s::setValue (short x, short y)

Set value of vector.

void SoSFVec2s::setValue (const short xy[2])

Set value of vector.


πŸ’Œ Author πŸ’Œ

Generated automatically by Doxygen for Coin from the source code. (not a human author, just a robot doing its lil thing πŸ€–βœ¨)


ok that's the whole page bestie, you ate that 🫢

Coin β€” Version 3.1.3 β€” SoSFVec2s(3) πŸ’–πŸŒΈπŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from