Open Inventor Reference
|
Engine that functions as an on/off switch. More...
#include <Inventor/engines/SoOnOff.h>
Public Member Functions | |
SoOnOff () | |
Constructor. | |
Static Public Member Functions | |
static void | initClass () |
Initializes base engine class. | |
Public Attributes | |
Inputs | |
SoSFTrigger | on |
Turn the isOn switch on. | |
SoSFTrigger | off |
Turn the isOn switch off. | |
SoSFTrigger | toggle |
Toggle the switch value. | |
Outputs | |
SoEngineOutput | isOn |
Switch value. | |
SoEngineOutput | isOff |
The inverse of isOn . | |
Protected Member Functions | |
virtual void | inputChanged (SoField *whichInput) |
This is called whenever the value of an input is changed. |
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
OnOff { }
SoOnOff::SoOnOff | ( | ) |
static void SoOnOff::initClass | ( | ) | [static] |
Reimplemented from SoEngine.
virtual void SoOnOff::inputChanged | ( | SoField * | whichField | ) | [protected, virtual] |
The default method does nothing. Subclasses can override this to detect when a specific field is changed.
Reimplemented from SoEngine.