Open Inventor Reference
SoConcatenate Class Reference

Joins separate fields into a single multiple-value field. More...

#include <Inventor/engines/SoConcatenate.h>

Inheritance diagram for SoConcatenate:
SoEngine SoFieldContainer SoBase

List of all members.

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

SoMFieldinput [10]
 Inputs; connect them like this: concatenate->input[0]->connectFrom(...) The names of these inputs is input0 ...
SoEngineOutputoutput
 Output.

Protected Member Functions

virtual SoFieldContainercopyThroughConnection () const
 Copies an instance that is encountered through a field connection.

Detailed Description

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.

See Also
SoEngineOutput, SoGate, SoSelectOne

Definition at line 109 of file SoConcatenate.h.


Constructor & Destructor Documentation

SoConcatenate::SoConcatenate ( SoType  mfInputType)

Member Function Documentation

virtual SoFieldContainer* SoConcatenate::copyThroughConnection ( ) const [protected, virtual]

Reimplemented from SoEngine.

static void SoConcatenate::initClass ( ) [static]

Reimplemented from SoEngine.


Member Data Documentation

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.


The documentation for this class was generated from the following file: