Selects one value from a multiple-value field. More...
#include <Inventor/engines/SoSelectOne.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoSelectOne (SoType mfInputType) | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFInt32 | index |
SoMField * | input |
SoEngineOutput * | output |
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 by default input does not contain any values, and no value is output from the engine.
Note that unlike most other engine fields, the input field and output are pointers.
type | <inputType> |
input | [] |
index | 0 |
SoEngineOutput, SoConcatenate, SoGate
SoSelectOne::SoSelectOne | ( | SoType | mfInputType | ) |
Constructor.
The argument specifies the type of the multiple-value input field.
static SoType SoSelectOne::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoEngine.
virtual SoType SoSelectOne::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Index of the value to select from the multiple-value field.
The multiple-value field from which the value will be selected.
( lt ) The single value selected.