Class SoOnOff
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.engines.SoEngine
com.openinventor.inventor.engines.SoOnOff
- All Implemented Interfaces:
SafeDisposable
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
File format/default:
OnOff {
on | |
off | |
toggle |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoEngineOutput
(SoSFBool
) The inverse of isOn.final SoEngineOutput
(SoSFBool
) Switch value.final SoSFTrigger
Turn the isOn switch off.final SoSFTrigger
Turn the isOn switch on.final SoSFTrigger
Toggle the switch value.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle