 |
VTK
9.0.1
|
Go to the documentation of this file.
44 #ifndef vtkGradientFilter_h
45 #define vtkGradientFilter_h
48 #include "vtkFiltersGeneralModule.h"
93 vtkGetStringMacro(ResultArrayName);
94 vtkSetStringMacro(ResultArrayName);
103 vtkGetStringMacro(DivergenceArrayName);
104 vtkSetStringMacro(DivergenceArrayName);
113 vtkGetStringMacro(VorticityArrayName);
114 vtkSetStringMacro(VorticityArrayName);
123 vtkGetStringMacro(QCriterionArrayName);
124 vtkSetStringMacro(QCriterionArrayName);
195 vtkSetClampMacro(ContributingCellOption,
int, 0, 2);
196 vtkGetMacro(ContributingCellOption,
int);
205 vtkSetClampMacro(ReplacementValueOption,
int, 0, 3);
206 vtkGetMacro(ReplacementValueOption,
int);
222 vtkDataSet* input,
bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
231 bool computeVorticity,
bool computeQCriterion,
bool computeDivergence,
vtkDataSet* output);
321 #endif //_vtkGradientFilter_h
~vtkGradientFilter() override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
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...
int GetOutputArrayType(vtkDataArray *inputArray)
Get the proper array type to compute requested derivative quantities for.
abstract superclass for arrays of numeric data
static vtkGradientFilter * New()
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.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
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
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 void SetInputScalars(int fieldAssociation, int fieldAttributeType)
virtual int ComputeRegularGridGradient(vtkDataArray *Array, int fieldAssociation, bool computeVorticity, bool computeQCriterion, bool computeDivergence, vtkDataSet *output)
Compute the gradients for either a vtkImageData, vtkRectilinearGrid or a vtkStructuredGrid.
virtual int ComputeUnstructuredGridGradient(vtkDataArray *Array, int fieldAssociation, vtkDataSet *input, bool computeVorticity, bool computeQCriterion, bool computeDivergence, vtkDataSet *output)
Compute the gradients for grids that are not a vtkImageData, vtkRectilinearGrid, or vtkStructuredGrid...
vtkTypeBool ComputeQCriterion
Flag to indicate that the Q-criterion of the input vector is to be computed.
virtual void SetInputScalars(int fieldAssociation, const char *name)
These are basically a convenience method that calls SetInputArrayToProcess to set the array used as t...
char * DivergenceArrayName
If non-null then it contains the name of the outputted divergence array.