34 #ifndef vtkGradientFilter_h
35 #define vtkGradientFilter_h
38 #include "vtkFiltersGeneralModule.h"
40 VTK_ABI_NAMESPACE_BEGIN
80 virtual void SetInputScalars(
int fieldAssociation,
const char*
name);
81 virtual void SetInputScalars(
int fieldAssociation,
int fieldAttributeType);
90 vtkGetStringMacro(ResultArrayName);
91 vtkSetStringMacro(ResultArrayName);
100 vtkGetStringMacro(DivergenceArrayName);
101 vtkSetStringMacro(DivergenceArrayName);
110 vtkGetStringMacro(VorticityArrayName);
111 vtkSetStringMacro(VorticityArrayName);
120 vtkGetStringMacro(QCriterionArrayName);
121 vtkSetStringMacro(QCriterionArrayName);
192 vtkSetClampMacro(ContributingCellOption,
int, 0, 2);
193 vtkGetMacro(ContributingCellOption,
int);
202 vtkSetClampMacro(ReplacementValueOption,
int, 0, 3);
203 vtkGetMacro(ReplacementValueOption,
int);
218 virtual int ComputeUnstructuredGridGradient(
vtkDataArray* Array,
int fieldAssociation,
219 vtkDataSet* input,
bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
227 virtual int ComputeRegularGridGradient(
vtkDataArray* Array,
int* dims,
int fieldAssociation,
228 bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
vtkDataSet* output,
319 VTK_ABI_NAMESPACE_END
320 #endif //_vtkGradientFilter_h
int ReplacementValueOption
Option to specify what replacement value or entities that don't have any gradient computed over them ...
char * ResultArrayName
If non-null then it contains the name of the outputted gradient array.
abstract class to specify dataset behavior
char * DivergenceArrayName
If non-null then it contains the name of the outputted divergence array.
char * QCriterionArrayName
If non-null then it contains the name of the outputted Q criterion array.
vtkTypeBool ComputeGradient
Flag to indicate that the gradient of the input vector is to be computed.
vtkTypeBool ComputeVorticity
Flag to indicate that vorticity/curl of the input vector is to be computed.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool FasterApproximation
When this flag is on (default is off), the gradient filter will provide a less accurate (but close) a...
vtkTypeBool ComputeDivergence
Flag to indicate that the divergence of the input vector is to be computed.
a simple class to control print indentation
abstract superclass for arrays of numeric data
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
A general filter for gradient estimation.
ReplacementValueEnum
The replacement value or entities that don't have any gradient computed over them based on the Contri...
dynamic, self-adjusting array of unsigned char
ContributingCellEnum
Options to choose what cells contribute to the gradient calculation.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int ContributingCellOption
Option to specify what cells to include in the gradient computation.
vtkTypeBool ComputeQCriterion
Flag to indicate that the Q-criterion of the input vector is to be computed.
Superclass for algorithms that produce output of the same type as input.
char * VorticityArrayName
If non-null then it contains the name of the outputted vorticity array.
static vtkDataSetAlgorithm * New()