Open Inventor Reference
|
Joins separate fields into a single multiple-value field. More...
#include <Inventor/engines/SoConcatenate.h>
Public Member Functions | |
SoConcatenate (SoType mfInputType) | |
Constructor. The argument specifies the type of values to concatenate. | |
Static Public Member Functions | |
static void | initClass () |
Initializes engine class. | |
Public Attributes | |
SoMField * | input [10] |
Inputs; connect them like this: concatenate->input[0]->connectFrom(...) The names of these inputs is input0 ... | |
SoEngineOutput * | output |
Output. | |
Protected Member Functions | |
virtual SoFieldContainer * | copyThroughConnection () const |
Copies an instance that is encountered through a field connection. |
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, unlike the output of most engines, output is a pointer. Note also that by default input does not contain any values, and no value is output from the engine.
Definition at line 109 of file SoConcatenate.h.
SoConcatenate::SoConcatenate | ( | SoType | mfInputType | ) |
virtual SoFieldContainer* SoConcatenate::copyThroughConnection | ( | ) | const [protected, virtual] |
Reimplemented from SoEngine.
static void SoConcatenate::initClass | ( | ) | [static] |
Reimplemented from SoEngine.
input9. The default value for these fields is no values.
Definition at line 122 of file SoConcatenate.h.
Is of the same type as the inputs (note that it is a pointer, unlike most engine outputs).
Definition at line 126 of file SoConcatenate.h.