vtkMergeFields

Section: Visualization Toolkit Graphics Classes

Usage

vtkMergeFields is used to merge mutliple field into one. The new field is put in the same field data as the original field. For example @verbatim mf->SetOutputField("foo", vtkMergeFields::POINT_DATA); mf->SetNumberOfComponents(2); mf->Merge(0, "array1", 1); mf->Merge(1, "array2", 0); @endverbatim will tell vtkMergeFields to use the 2nd component of array1 and the 1st component of array2 to create a 2 component field called foo. The same can be done using Tcl: @verbatim mf SetOutputField foo POINT_DATA mf Merge 0 array1 1 mf Merge 1 array2 0

Field locations: DATA_OBJECT, POINT_DATA, CELL_DATA @endverbatim

To create an instance of class vtkMergeFields, simply invoke its constructor as follows

  obj = vtkMergeFields

Methods

The class vtkMergeFields has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkMergeFields class.