Go to the documentation of this file.
44 #ifndef vtkGradientFilter_h
45 #define vtkGradientFilter_h
47 #include "vtkFiltersGeneralModule.h"
81 virtual void SetInputScalars(
int fieldAssociation,
const char *
name);
82 virtual void SetInputScalars(
int fieldAssociation,
int fieldAttributeType);
91 vtkGetStringMacro(ResultArrayName);
92 vtkSetStringMacro(ResultArrayName);
101 vtkGetStringMacro(DivergenceArrayName);
102 vtkSetStringMacro(DivergenceArrayName);
111 vtkGetStringMacro(VorticityArrayName);
112 vtkSetStringMacro(VorticityArrayName);
121 vtkGetStringMacro(QCriterionArrayName);
122 vtkSetStringMacro(QCriterionArrayName);
193 vtkSetClampMacro(ContributingCellOption,
int, 0, 2);
194 vtkGetMacro(ContributingCellOption,
int);
203 vtkSetClampMacro(ReplacementValueOption,
int, 0, 3);
204 vtkGetMacro(ReplacementValueOption,
int);
222 virtual int ComputeUnstructuredGridGradient(
224 bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
232 virtual int ComputeRegularGridGradient(
233 vtkDataArray* Array,
int fieldAssociation,
bool computeVorticity,
234 bool computeQCriterion,
bool computeDivergence,
vtkDataSet* output);
324 #endif //_vtkGradientFilter_h
vtkTypeBool ComputeVorticity
Flag to indicate that vorticity/curl of the input vector is to be computed.
vtkTypeBool FasterApproximation
When this flag is on (default is off), the gradient filter will provide a less accurate (but close) a...
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
abstract superclass for arrays of numeric data
char * ResultArrayName
If non-null then it contains the name of the outputted gradient array.
int ReplacementValueOption
Option to specify what replacement value or entities that don't have any gradient computed over them ...
Superclass for algorithms that produce output of the same type as input.
ReplacementValueEnum
The replacement value or entities that don't have any gradient computed over them based on the Contri...
char * QCriterionArrayName
If non-null then it contains the name of the outputted Q criterion array.
ContributingCellEnum
Options to choose what cells contribute to the gradient calculation.
int ContributingCellOption
Option to specify what cells to include in the gradient computation.
a simple class to control print indentation
static vtkDataSetAlgorithm * New()
vtkTypeBool ComputeGradient
Flag to indicate that the gradient of the input vector is to be computed.
char * VorticityArrayName
If non-null then it contains the name of the outputted vorticity array.
A general filter for gradient estimation.
abstract class to specify dataset behavior
vtkTypeBool ComputeDivergence
Flag to indicate that the divergence 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.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkTypeBool ComputeQCriterion
Flag to indicate that the Q-criterion of the input vector is to be computed.
char * DivergenceArrayName
If non-null then it contains the name of the outputted divergence array.