vtkSplitField

Section: Visualization Toolkit Graphics Classes

Usage

vtkSplitField is used to split a multi-component field (vtkDataArray) into multiple single component fields. The new fields are put in the same field data as the original field. The output arrays are of the same type as the input array. Example: @verbatim sf->SetInputField("gradient", vtkSplitField::POINT_DATA); sf->Split(0, "firstcomponent"); @endverbatim tells vtkSplitField to extract the first component of the field called gradient and create an array called firstcomponent (the new field will be in the output's point data). The same can be done from Tcl: @verbatim sf SetInputField gradient POINT_DATA sf Split 0 firstcomponent

AttributeTypes: SCALARS, VECTORS, NORMALS, TCOORDS, TENSORS Field locations: DATA_OBJECT, POINT_DATA, CELL_DATA @endverbatim Note that, by default, the original array is also passed through.

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

  obj = vtkSplitField

Methods

The class vtkSplitField 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 vtkSplitField class.