Class SoGate
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.SoGate
- All Implemented Interfaces:
SafeDisposable
Selectively copies its input to its output.
This engine selectively copies its input to its output. The type of the input field can be any subclass of
SoMField. The type is specified when an instance of the class is created. For example, SoGate( SoMFFloat.getClass()) creates an engine that copies floating-point values.
The enable input controls continuous flow-through of values. While enable is true, the input will be copied to the output. Alternatively, by touching the trigger input, you can copy a single value from the input to the output.
Note that by default input does not contain any values.
File format/default:
Gate {
| type | <inputType> |
| input | [] |
| enable | false |
| trigger |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFBoolEnable continous flow-through.final SoMFieldThe value that is copied to the output when the gate is open.final SoEngineOutput( lt ) Contains a copy of the input value if the gate is open.final SoSFTriggerCopy a single 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, getOutputNameMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touchMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
enable
Enable continous flow-through. -
trigger
Copy a single value. -
input
The value that is copied to the output when the gate is open. -
output
( lt ) Contains a copy of the input value if the gate is open.
-
-
Constructor Details
-
SoGate
Constructor. The argument specifies the type of the input field.
-