SoSelectOne – 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::getClassTypeId()) creates an engine that selects one floating-point value.
Note
that unlike most other engine fields, the
input field and
output are pointers. Note also that by default
input does not contain any values, and no value is output from the engine.