vtkPassArrays

Section: Visualization Toolkit Infovis Classes

Usage

This filter preserves all the topology of the input, but only a subset of arrays are passed to the output. Add an array to be passed to the output data object with AddArray(). If RemoveArrays is on, the specified arrays will be the ones that are removed instead of the ones that are kept.

Arrays with special attributes (scalars, pedigree ids, etc.) will retain those attributes in the output.

By default, only those field types with at least one array specified through AddArray will be processed. If instead UseFieldTypes is turned on, you explicitly set which field types to process with AddFieldType.

Example 1:

<pre> passArray->AddArray(vtkDataObject::POINT, "velocity"); </pre>

The output will have only that one array "velocity" in the point data, but cell and field data will be untouched.

Example 2:

<pre> passArray->AddArray(vtkDataObject::POINT, "velocity"); passArray->UseFieldTypesOn(); passArray->AddFieldType(vtkDataObject::POINT); passArray->AddFieldType(vtkDataObject::CELL); </pre>

The point data would still contain the single array, but the cell data would be cleared since you did not specify any arrays to pass. Field data would still be untouched.

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

  obj = vtkPassArrays

Methods

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