SOSFBOOL(3iv)
π SoSFBool β bestie edition π
okay so this is the manual page for SoSFBool, from the 3IV manual, and honestly? she's a little icon. one boolean, one field, zero drama. let's get into it π
β¨ NAME β¨
SoSFBool β a field that holds exactly one boolean value. that's it. that's the whole girl. true or false, no in-between, no "it's complicated" π
π¦ INHERITS FROM π¦
SoField > SoSField > SoSFBool
she comes from a long line of distinguished field girlies. know your lineage, bestie π
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFBool.h>
β¨ Methods from class SoSFBool β¨
static SoType getClassTypeId()
virtual void getTypeId() const
SbBool getValue() const
SbBool operator =(SbBool newValue)
void setValue(SbBool newValue)
int operator ==(const SoSFBool &f) const
int operator !=(const SoSFBool &f) const
π Methods from class SoField π
these are the inherited ones, so they're giving "family heirlooms" energy π«Ά
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 π
a field containing a single boolean (true or false) value. literally just one. not a collection, not a list, not a situationship. ONE. π
and here's the fun part β when SoSFBools get written out to a file, they show up as any of these:
"0"β which means FALSE"1""TRUE""FALSE"
so like, yes, she has range β¨ but it's still just a yes/no at heart, iykyk.
π₯ METHODS π₯
static SoType getClassTypeId()virtual void getTypeId() const
returns the type for this class, or for one particular object of this class. type check yourself before you wreck yourself π
SbBool getValue() const
hands you back this field's value. the whole point of her existence, honestly π
SbBool operator =(SbBool newValue)void setValue(SbBool newValue)
sets this field to newValue. glow-up, but make it boolean π
int operator ==(const SoSFBool &f) constint operator !=(const SoSFBool &f) const
returns TRUE if f is of the same type and has the same value as this field. same type, same vibe, same value β then and only then are y'all matching π«Ά
π SEE ALSO π
SoField, SoSField, SoMFBool β the friend group. go say hi to SoMFBool if one boolean isn't enough for you, no judgment π
k that's the whole page bestie!! this was SoSFBool(3IV) from the 3IV manual, header and footer both reading SoSFBool(3IV)() β same name top and bottom, which is honestly very main character of her π
β¨ bye ily, go set a boolean πΈ
π¦ 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