SoSFString(3)
β¨ SoSFString β bestie edition β¨
okay so welcome to the SoSFString page in the Coin manual, and yes we're doing this together π
πΈ NAME πΈ
SoSFString β it's literally just a lil container for an SbString, no cap.
π SYNOPSIS π
#include <Inventor/fields/SoSFString.h>
It inherits from SoSField. Family tree moment π«Ά
π Public Member Functions π
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFString & operator= (const SoSFString &field)virtual SbBool isSame (const SoField &field) constconst SbString & getValue (void) constvoid setValue (const SbString &newvalue)const SbString & operator= (const SbString &newvalue)int operator== (const SoSFString &field) constint operator!= (const SoSFString &field) constvoid setValue (const char *str)
π¦ 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 defaultVal)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)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 *input, 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 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 π₯
SbString value
π 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=TRUE)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) constvirtual SoNotRec createNotRec (SoBase *cont)
π Detailed Description π
The SoSFString class is a container for an SbString. That's the whole vibe π
So when nodes, engines, or any other field container needs to hold onto one single string, this is the field it reaches for. Just one. Singular. Main character energy β¨
And like β fields of this type store their value to file as a the string within quotes. (yes, keeping that phrasing fr fr, quotes go brrr π)
See also
SoMFStringβ the multi-string sibling, iykyk π¦
π Member Function Documentation π
void * SoSFString::createInstance (void ) [static]
okay so this API member is considered internal to the library, since it's not likely to be of interest to the application programmer. Not me telling you to skip it, just telling you what the page says π
It creates a new instance of the class type corresponding to the SoType object. Slay, I guess.
SoType SoSFString::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. The ID check β
SoType SoSFString::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoField. This is used for runtime type checking and "downward" casting. Basically: "what even are you" but for objects, and it answers correctly π
Implements SoField.
void SoSFString::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, no mixing, no substitutions, periodt.
Implements SoField.
SbBool SoSFString::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). Both. Not just one. Both π«Ά
Implements SoField.
void SoSFString::initClass (void ) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system. Behind-the-scenes iconic behaviour β¨
void SoSFString::setValue (const char * str)
Set string field value from str. That's it, that's the function π
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. Not a human, just a very diligent robot π§
okay that's the whole page bestie, tysm for reading π this was Coin manual page SoSFString(3), Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β go forth and string responsibly, ily, bye πβ¨
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms