Section: Visualization Toolkit Graphics Classes
To create an instance of class vtkGradientFilter, simply invoke its constructor as follows
obj = vtkGradientFilter
obj
is an instance of the vtkGradientFilter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGradientFilter = obj.NewInstance ()
vtkGradientFilter = obj.SafeDownCast (vtkObject o)
obj.SetInputScalars (int fieldAssociation, string name)
- These are basically a convenience method that calls SetInputArrayToProcess
to set the array used as the input scalars. The fieldAssociation comes
from the vtkDataObject::FieldAssocations enum. The fieldAttributeType
comes from the vtkDataSetAttributes::AttributeTypes enum.
obj.SetInputScalars (int fieldAssociation, int fieldAttributeType)
- These are basically a convenience method that calls SetInputArrayToProcess
to set the array used as the input scalars. The fieldAssociation comes
from the vtkDataObject::FieldAssocations enum. The fieldAttributeType
comes from the vtkDataSetAttributes::AttributeTypes enum.
string = obj.GetResultArrayName ()
- Get/Set the name of the resulting array to create. If NULL (the
default) then the output array will be named "Gradients".
obj.SetResultArrayName (string )
- Get/Set the name of the resulting array to create. If NULL (the
default) then the output array will be named "Gradients".
int = obj.GetFasterApproximation ()
- When this flag is on (default is off), the gradient filter will provide a
less accurate (but close) algorithm that performs fewer derivative
calculations (and is therefore faster). The error contains some smoothing
of the output data and some possible errors on the boundary. This
parameter has no effect when performing the gradient of cell data.
This only applies if the input grid is a vtkUnstructuredGrid or a
vtkPolyData.
obj.SetFasterApproximation (int )
- When this flag is on (default is off), the gradient filter will provide a
less accurate (but close) algorithm that performs fewer derivative
calculations (and is therefore faster). The error contains some smoothing
of the output data and some possible errors on the boundary. This
parameter has no effect when performing the gradient of cell data.
This only applies if the input grid is a vtkUnstructuredGrid or a
vtkPolyData.
obj.FasterApproximationOn ()
- When this flag is on (default is off), the gradient filter will provide a
less accurate (but close) algorithm that performs fewer derivative
calculations (and is therefore faster). The error contains some smoothing
of the output data and some possible errors on the boundary. This
parameter has no effect when performing the gradient of cell data.
This only applies if the input grid is a vtkUnstructuredGrid or a
vtkPolyData.
obj.FasterApproximationOff ()
- When this flag is on (default is off), the gradient filter will provide a
less accurate (but close) algorithm that performs fewer derivative
calculations (and is therefore faster). The error contains some smoothing
of the output data and some possible errors on the boundary. This
parameter has no effect when performing the gradient of cell data.
This only applies if the input grid is a vtkUnstructuredGrid or a
vtkPolyData.
obj.SetComputeVorticity (int )
- Set the resultant array to be vorticity/curl of the input
array. The input array must have 3 components.
int = obj.GetComputeVorticity ()
- Set the resultant array to be vorticity/curl of the input
array. The input array must have 3 components.
obj.ComputeVorticityOn ()
- Set the resultant array to be vorticity/curl of the input
array. The input array must have 3 components.
obj.ComputeVorticityOff ()
- Set the resultant array to be vorticity/curl of the input
array. The input array must have 3 components.