Field containing a single Boolean value. More...
#include <Inventor/fields/SoSFBool.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFBool & | operator= (const SoSFBool &f) |
SoSFBool () | |
virtual | ~SoSFBool () |
SbBool | getValue () const |
void | setValue (SbBool newValue) |
SbBool | operator= (SbBool newValue) |
int | operator== (const SoSFBool &f) const |
int | operator!= (const SoSFBool &f) const |
virtual size_t | getValueSize () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing a single Boolean value.
A field containing a single Boolean (true or false) value.
SoSFBools may be written to file as "0" (representing FALSE), "1", "TRUE", or "FALSE".
SoSFBool::SoSFBool | ( | ) |
Default constructor.
virtual SoSFBool::~SoSFBool | ( | ) | [virtual] |
Destructor.
static SoType SoSFBool::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFBool::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
SbBool SoSFBool::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFBool::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFBool::operator!= | ( | const SoSFBool & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
int SoSFBool::operator== | ( | const SoSFBool & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFBool::setValue | ( | SbBool | newValue | ) |
Sets this field to newValue.