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
public class SoSelectOne extends SoEngine
Selects one value from a multiple-value field. This engine selects a single value from a multiple-value field, based on the input fieldindex
. The type of the input field can be any subclass ofSoMField
, and the type of the output is the corresponding subclass ofSoSField
. For example, if the input type isSoMFVec3f
, the output type will beSoSFVec3f
. 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:
SoEngineOutput
,SoConcatenate
,SoGate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFInt32
index
Index of the value to select from the multiple-value field.SoMField
input
The multiple-value field from which the value will be selected.SoEngineOutput
output
( lt ) The single value selected.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoSelectOne(java.lang.Class<? extends Inventor> mfInputType)
Constructor.
-
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 Detail
-
index
public final SoSFInt32 index
Index of the value to select from the multiple-value field.
-
input
public final SoMField input
The multiple-value field from which the value will be selected.
-
output
public final SoEngineOutput output
( lt ) The single value selected.
-
-
Constructor Detail
-
SoSelectOne
public SoSelectOne(java.lang.Class<? extends Inventor> mfInputType)
Constructor. The argument specifies the type of the multiple-value input field.
-
-