Engine that functions as an on/off switch. More...
#include <Inventor/engines/SoOnOff.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoOnOff () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFTrigger | on |
SoSFTrigger | off |
SoSFTrigger | toggle |
SoEngineOutput | isOn |
SoEngineOutput | isOff |
Engine that functions as an on/off switch.
This engine has three triggers as input and two Boolean values as output. The isOn output is a switch that can be turned on or off by triggering the corresponding input. You can toggle the value by triggering the toggle input. By default isOn is FALSE. The isOff output value is the inverse of isOn
on | |
off | |
toggle |
SoOnOff::SoOnOff | ( | ) |
Constructor.
static SoType SoOnOff::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoEngine.
virtual SoType SoOnOff::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
( SoSFBool ) The inverse of isOn.
( SoSFBool ) Switch value.
Turn the isOn switch off.
Turn the isOn switch on.
Toggle the switch value.