Joins separate fields into a single multiple-value field. More...
#include <Inventor/engines/SoConcatenate.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoConcatenate (SoType mfInputType) | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMField * | input [10] |
SoEngineOutput * | output |
Joins separate fields into a single multiple-value field.
This engine joins up to 10 separate fields of a type into a single multiple-valued field of the same type. The type of the input fields can be any subclass of SoMField The type is specified when an instance of the class is created. For example, SoConcatenate( SoMFFloat::getClassTypeId() ) creates an engine that concatenates floating-point values.
The input field is a 10-element array, where each element can be connected to single- or multiple-valued fields. All the values in the input are concatenated together to form one multiple-value field. For example, if input[0] contains 10 values and input[1] contains 3 values, the output will contain 13 values.
Note that by default input does not contain any values, and no value is output from the engine.
Note also that, unlike the output of most engines, output is a pointer.
type | <inputType> |
input0 | [] |
input1 | [] |
input2 | [] |
input3 | [] |
input4 | [] |
input5 | [] |
input6 | [] |
input7 | [] |
input8 | [] |
input9 | [] |
SoEngineOutput, SoGate, SoSelectOne
SoConcatenate::SoConcatenate | ( | SoType | mfInputType | ) |
Constructor.
The argument specifies the type of values to concatenate.
static SoType SoConcatenate::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoEngine.
virtual SoType SoConcatenate::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Array of Input.
Connect them like this: concatenate->input[0]->connectFrom(...) The names of these inputs is input0 ... input9. The default value for these fields is no values.
Output.
Is of the same type as the inputs (note that it is a pointer, unlike most engine outputs).