Class SoSelectOne
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.SoSelectOne
- All Implemented Interfaces:
SafeDisposable
Selects one value from a multiple-value field.
This engine selects a single value from a multiple-value field, based on the input field
index
. The type of the input field can be any subclass of SoMField
, and the type of the output is the corresponding subclass of SoSField
. For example, if the input type is SoMFVec3f
, the output type will be SoSFVec3f
. The type is specified when an instance of the class is created. For example, SoSelectOne
( SoMFFloat.getClass()) creates an engine that selects one floating-point value.
Note that by default input
does not contain any values, and no value is output from the engine.
File format/default:
SelectOne {
type | <inputType> |
input | [] |
index | 0 |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFInt32
Index of the value to select from the multiple-value field.final SoMField
The multiple-value field from which the value will be selected.final SoEngineOutput
( lt ) The single value selected.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
-
Field Details
-
index
Index of the value to select from the multiple-value field. -
input
The multiple-value field from which the value will be selected. -
output
( lt ) The single value selected.
-
-
Constructor Details
-
SoSelectOne
Constructor. The argument specifies the type of the multiple-value input field.
-