Class 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 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:
    SoEngineOutput, SoConcatenate, SoGate
    • 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.