Section: Visualization Toolkit Infovis Classes
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
obj
is an instance of the vtkPassArrays class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkPassArrays = obj.NewInstance ()
vtkPassArrays = obj.SafeDownCast (vtkObject o)
obj.AddArray (int fieldType, string name)
- Adds an array to pass through.
fieldType where the array that should be passed (point data, cell data, etc.).
It should be one of the constants defined in the vtkDataObject::AttributeTypes
enumeration.
obj.ClearArrays ()
- Clear all arrays to pass through.
obj.SetRemoveArrays (bool )
- Instead of passing only the specified arrays, remove the specified arrays
and keep all other arrays. Default is off.
bool = obj.GetRemoveArrays ()
- Instead of passing only the specified arrays, remove the specified arrays
and keep all other arrays. Default is off.
obj.RemoveArraysOn ()
- Instead of passing only the specified arrays, remove the specified arrays
and keep all other arrays. Default is off.
obj.RemoveArraysOff ()
- Instead of passing only the specified arrays, remove the specified arrays
and keep all other arrays. Default is off.
obj.SetUseFieldTypes (bool )
- Process only those field types explicitly specified with AddFieldType.
Otherwise, processes field types associated with at least one specified
array. Default is off.
bool = obj.GetUseFieldTypes ()
- Process only those field types explicitly specified with AddFieldType.
Otherwise, processes field types associated with at least one specified
array. Default is off.
obj.UseFieldTypesOn ()
- Process only those field types explicitly specified with AddFieldType.
Otherwise, processes field types associated with at least one specified
array. Default is off.
obj.UseFieldTypesOff ()
- Process only those field types explicitly specified with AddFieldType.
Otherwise, processes field types associated with at least one specified
array. Default is off.
obj.AddFieldType (int fieldType)
- Add a field type to process.
fieldType where the array that should be passed (point data, cell data, etc.).
It should be one of the constants defined in the vtkDataObject::AttributeTypes
enumeration.
NOTE: These are only used if UseFieldType is turned on.
obj.ClearFieldTypes ()
- Clear all field types to process.