SOSFENUM(3iv)
π SoSFEnum β the field that holds an enum value, bestie π
okay so this is the SoSFEnum(3IV) page, and honestly? it's giving "small but mighty". it's a field. it holds one enumerated value. that's the whole vibe. but the way it does it? iconic. β¨
πΈ INHERITS FROM πΈ
SoField > SoSField > SoSFEnum
family tree moment fr fr π«Ά β it's a grandbaby of SoField, and it came up through SoSField.
β¨ SYNOPSIS β¨
π Methods from class SoSFEnum
void setValue(const SbName &name)
static SoType getClassTypeId()
virtual void getTypeId() const
int getValue() const
int operator =(int newValue)
void setValue(int newValue)
int operator ==(const SoSFEnum &f) const
int operator !=(const SoSFEnum &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 single-value field that holds an enumerated type value, and underneath it's stored as an integer. that's the whole deal. π
but here's the β¨loreβ¨ β nodes that use this field class define mnemonic names for the values. and you should use those names when you're setting or testing the field's values, okay? even though the methods literally treat the values as integers. like yes the int is there. no you should not be out here using it. the names are the moment. π
SoSFEnums get written to file as a mnemonic enumerated type name β¨. and the name is gonna differ depending on which node or engine class is using this field. so like... don't assume. check the man pages for your specific nodes or engines to find the actual names (think SoDrawStyle β that's the example, bestie, not me making things up π«Ά).
π METHODS π
void setValue(const SbName &name)β sets this field to hold the given mnemonic name, handed to it as a name or a string. β¨static SoType getClassTypeId()virtual void getTypeId() constβ these two return the type for this class, or for a particular object of this class. iykyk πint getValue() constβ hands you back this field's value. that's it, that's the function. πint operator =(int newValue)void setValue(int newValue)β sets this field to newValue. slay. β¨int operator ==(const SoSFEnum &f) constint operator !=(const SoSFEnum &f) constβ returnsTRUEiffis of the same type and has the same value as this field. both conditions, no shortcuts. π
π SEE ALSO π
SoField, SoSField, SoMFEnum
ngl bestie, if you were looking for the multi-value version, that's SoMFEnum and she's right there in SEE ALSO. this one is the single-value girlie. π
okay that's the whole page, mwah π«Ά this lil doc came to you as part of the SoSFEnum(3IV) manual page β that's the 3IV manual, and the source/version tag on the footer is SoSFEnum(3IV)(). periodt. β¨πΈπ
π¦ 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