SoSFBool — field containing a single boolean value
Contents
Description
A field containing a single boolean (true or false) value.
SoSFBools may be written to file as "0" (representing FALSE), "1", "TRUE", or "FALSE".
Inherits From
SoField > SoSField > SoSFBool
Methods
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
SbBoolgetValue()const
Returns this field's value.
SbBooloperator=(SbBoolnewValue)voidsetValue(SbBoolnewValue)
Sets this field to newValue.
intoperator==(constSoSFBool&f)constintoperator!=(constSoSFBool&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFBool — field containing a single boolean value
See Also
SoField,SoSField,SoMFBoolSoSFBool(3IV)()
Synopsis
#include<Inventor/fields/SoSFBool.h>
Methods from class SoSFBool:
staticSoTypegetClassTypeId()virtualvoidgetTypeId()constSbBoolgetValue()constSbBooloperator=(SbBoolnewValue)voidsetValue(SbBoolnewValue)intoperator==(constSoSFBool&f)constintoperator!=(constSoSFBool&f)const
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const