SoSFName(3)
π SoSFName π
okay bestie, gather round, because we're doing SoSFName(3) from the Library Functions Manual and honestly? it's giving "small but mighty". this is the Coin library's little name-holder, and i'm gonna walk you through every single line of it, no cap. π
β¨ NAME β¨
SoSFName β the class that's literally just a container for an SbName. that's it. that's the whole job. queen of holding one (1) name. π
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFName.h>
Inherits SoSField. so it's got the single-field bloodline, iykyk. π§¬
π¦ Public Member Functions π¦
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFName & operator= (const SoSFName &field)virtual SbBool isSame (const SoField &field) constconst SbName & getValue (void) constvoid setValue (const SbName &newvalue)const SbName & operator= (const SbName &newvalue)int operator== (const SoSFName &field) constint operator!= (const SoSFName &field) constvoid setValue (const char *const name)
π Public Member Functions inherited from SoSField
virtual ~SoSField ()
π Public Member Functions inherited from SoField
virtual ~SoField ()void setIgnored (SbBool ignore)SbBool isIgnored (void) constvoid setDefault (SbBool def)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=0, SbBool append=0)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=0)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=0, SbBool append=0)SbBool appendConnection (SoField *master, SbBool notnotify=0)void disconnect (SoField *field)SbBool isConnectedFromField (void) constSbBool getConnectedField (SoField *&master) constint getNumConnections (void) constint getForwardConnections (SoFieldList &slavelist) constint getConnections (SoFieldList &masterlist) constvoid disconnect (void)SbBool isConnected (void) constvoid setContainer (SoFieldContainer *cont)SoFieldContainer * getContainer (void) constSbBool set (const char *valuestring)void get (SbString &valuestring)SbBool shouldWrite (void) constvirtual void touch (void)virtual void startNotify (void)virtual void notify (SoNotList *nlist)SbBool enableNotify (SbBool on)SbBool isNotifyEnabled (void) constvoid addAuditor (void *f, SoNotRec::Type type)void removeAuditor (void *f, SoNotRec::Type type)int operator== (const SoField &f) constint operator!= (const SoField &f) constvirtual void connectionStatusChanged (int numconnections)SbBool isReadOnly (void) constvirtual void fixCopy (SbBool copyconnections)virtual SbBool referencesCopy (void) constvoid copyConnection (const SoField *fromfield)virtual SbBool read (SoInput *in, const SbName &name)virtual void write (SoOutput *out, const SbName &name) constvirtual void countWriteRefs (SoOutput *out) constvoid setFieldType (int type)int getFieldType (void) constSbBool getDirty (void) constvoid 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 π
SbName valueβ yeah. the whole personality. it's right there. π«Ά
π Additional Inherited Members π
- Public Types inherited from
SoFieldenum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
- Protected Member Functions inherited from
SoSFieldSoSField (void)
- Protected Member Functions inherited from
SoFieldSoField (void)void valueChanged (SbBool resetdefault=1)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
π Detailed Description π
okay so, SoSFName is a container for an SbName. that's the vibe. π
you reach for this field when nodes, engines, or other field containers need to store a single name string. one name. singular. not a list, bestie, that's a different girl.
fields of this type store their value to file as the name string within quotes. so like, quotes stay winning. β¨
See also
SoMFNameβ the multi version, if one name isn't enough for you π
π₯ Member Function Documentation π₯
SoType SoSFName::getTypeId (void ) const [virtual]
returns the type identification instance which uniquely identifies the Coin field class the object belongs to. it's the "which girl is this" check. main character identification energy. π
See also
getClassTypeId(),SoType
Implements SoField.
void SoSFName::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 with the wrong crowd, it's not gonna work out.
Implements SoField.
SbBool SoSFName::isSame (const SoField & f) const [virtual]
check for equal type and value(s). basically the "are we the same person" test. πͺ
Implements SoField.
void SoSFName::setValue (const char *const name)
set value of field. short, sweet, iconic. π
π Author π
generated automatically by Doxygen for Coin from the source code. so like, not a human author, just the robot doing its thing π€β¨
and that's the whole page, bestie, every flag, every inherited function, every see-also β nothing skipped, periodt. π
signing off from the Coin crew, Version 2.5.0, with the page dated SoSFName(3) in the manual β ily, go hold some names responsibly ππ¦π
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms