SOSFNAME(3iv)
π SoSFName π
okay bestie, so this is the manual page for SoSFName from the 3IV manual set β yeah, the Open Inventor field girlies. she's a little niche, she's a little specific, and honestly? she ate. let's get into it π
β¨ NAME β¨
SoSFName β a field containing a name π·οΈ
πΈ INHERITS FROM πΈ
SoField > SoSField > SoSFName
like, the whole ancestry tree. she comes from a long line of fields and she's proud of it π
π¦ SYNOPSIS π¦
#include <Inventor/fields/SoSFName.h>
Methods from class SoSFName:
void setValue(const char *string)
static SoType getClassTypeId()
virtual void getTypeId() const
const SbName & getValue() const
const SbName & operator =(const SbName & newValue)
void setValue(const SbName & newValue)
int operator ==(const SoSFName &f) const
int operator !=(const SoSFName &f) const
Methods from class SoField:
void setIgnored(SbBool ignore)
SbBool isIgnored() const
SbBool isDefault() const
virtual SbBool isOfType(SoType type) const
SbBool set(const char *valueString)
void get(SbString &valueString)
void touch()
SbBool connectFrom(SoField *fromField)
SbBool connectFrom(SoEngineOutput *fromEngine)
void disconnect()
SbBool isConnected() const
SbBool isConnectedFromField() const
SbBool getConnectedField(SoField *&writingField) const
SbBool isConnectedFromEngine() const
SbBool getConnectedEngine(SoEngineOutput *&engineOutput)
const
void enableConnection(SbBool flag)
SbBool isConnectionEnabled() const
int getForwardConnections(SoFieldList &list) const
SoFieldContainer * getContainer() const
π DESCRIPTION π
so basically, this is a field that holds a name. and when we say "names," we mean short little series of characters β the kind you'd use for labels or names β and here's the β¨teaβ¨: they get stored in a special table that's literally designed to make lookup and comparison go fast. it's giving efficiency, it's giving main character energy πββοΈπ¨
ngl though, for most purposes an SoSFString field is probably more appropriate. just saying. fr fr π
when it comes to writing them out, SoSFNames are written to file as a string of characters. and there's a rule, bestie, so listen up: names must begin with an underscore or an alphabetic character, and they must consist entirely of underscores, alphabetic characters, or numbers. no vibes-based exceptions, no exceptions periodt π
π METHODS π
π void setValue(const char *string)
set this field to the name equivalent to the given string. like, you hand her a string, she hands you back the name version π
π static SoType getClassTypeId()
π virtual void getTypeId() const
returns the type for this class, or for a particular object of this class. classic type-checking behavior, we love to see it π«Ά
π const SbName & getValue() const
returns this field's value. that's it, that's the whole thing, iconic β
π const SbName & operator =(const SbName & newValue)
π void setValue(const SbName & newValue)
sets this field to newValue. two ways in, same destination πͺβ¨
π int operator ==(const SoSFName &f) const
π int operator !=(const SoSFName &f) const
returns TRUE if f is of the same type and has the same value as this field. both conditions, no shortcuts, she's thorough like that π―
π₯ SEE ALSO π₯
SoFieldSoSFieldSoMFName
and that's the whole page, bestie!! this one's from the 3IV manual set, dated just like the rest of the SoSFName(3IV) family β no date drama, just the version tag riding along at the bottom of the page. go forth and name things responsibly π¦ππ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms