47 #ifndef vtkGradientFilter_h 48 #define vtkGradientFilter_h 50 #include "vtkFiltersGeneralModule.h" 84 virtual void SetInputScalars(
int fieldAssociation,
const char *
name);
85 virtual void SetInputScalars(
int fieldAssociation,
int fieldAttributeType);
95 vtkSetStringMacro(ResultArrayName);
105 vtkSetStringMacro(DivergenceArrayName);
115 vtkSetStringMacro(VorticityArrayName);
125 vtkSetStringMacro(QCriterionArrayName);
138 vtkGetMacro(FasterApproximation,
int);
150 vtkGetMacro(ComputeGradient,
int);
162 vtkGetMacro(ComputeDivergence,
int);
174 vtkGetMacro(ComputeVorticity,
int);
187 vtkGetMacro(ComputeQCriterion,
int);
196 vtkSetClampMacro(ContributingCellOption,
int, 0, 2);
197 vtkGetMacro(ContributingCellOption,
int);
206 vtkSetClampMacro(ReplacementValueOption,
int, 0, 3);
207 vtkGetMacro(ReplacementValueOption,
int);
225 virtual int ComputeUnstructuredGridGradient(
227 bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
235 virtual int ComputeRegularGridGradient(
236 vtkDataArray* Array,
int fieldAssociation,
bool computeVorticity,
237 bool computeQCriterion,
bool computeDivergence,
vtkDataSet* output);
327 #endif //_vtkGradientFilter_h int ReplacementValueOption
Option to specify what replacement value or entities that don't have any gradient computed over them ...
int ComputeVorticity
Flag to indicate that vorticity/curl of the input vector is to be computed.
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.
int ComputeDivergence
Flag to indicate that the divergence of the input vector is to be computed.
char * QCriterionArrayName
If non-null then it contains the name of the outputted Q criterion array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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...
int FasterApproximation
When this flag is on (default is off), the gradient filter will provide a less accurate (but close) a...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int ComputeGradient
Flag to indicate that the gradient of the input vector is to be computed.
int ComputeQCriterion
Flag to indicate that the Q-criterion of the input vector is to be computed.
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.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkDataSetAlgorithm * New()