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) const
  • int 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 🌸