VTK
vtkGradientFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGradientFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
38 #ifndef vtkGradientFilter_h
39 #define vtkGradientFilter_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
42 #include "vtkDataSetAlgorithm.h"
43 
45 {
46 public:
48  virtual void PrintSelf(ostream &os, vtkIndent indent);
49 
50  static vtkGradientFilter *New();
51 
53 
58  virtual void SetInputScalars(int fieldAssociation, const char *name);
59  virtual void SetInputScalars(int fieldAssociation, int fieldAttributeType);
61 
63 
65  vtkGetStringMacro(ResultArrayName);
66  vtkSetStringMacro(ResultArrayName);
68 
70 
73  vtkGetStringMacro(VorticityArrayName);
74  vtkSetStringMacro(VorticityArrayName);
76 
78 
81  vtkGetStringMacro(QCriterionArrayName);
82  vtkSetStringMacro(QCriterionArrayName);
84 
86 
93  vtkGetMacro(FasterApproximation, int);
94  vtkSetMacro(FasterApproximation, int);
95  vtkBooleanMacro(FasterApproximation, int);
97 
99 
101  vtkSetMacro(ComputeVorticity, int);
102  vtkGetMacro(ComputeVorticity, int);
103  vtkBooleanMacro(ComputeVorticity, int);
105 
107 
112  vtkSetMacro(ComputeQCriterion, int);
113  vtkGetMacro(ComputeQCriterion, int);
114  vtkBooleanMacro(ComputeQCriterion, int);
116 
117 protected:
120 
121  virtual int RequestUpdateExtent(vtkInformation *,
126 
128 
131  virtual int ComputeUnstructuredGridGradient(
132  vtkDataArray* Array, int fieldAssociation, vtkDataSet* input,
133  bool computeVorticity, bool computeQCriterion, vtkDataSet* output);
135 
137 
140  virtual int ComputeRegularGridGradient(
141  vtkDataArray* Array, int fieldAssociation, bool computeVorticity,
142  bool computeQCriterion, vtkDataSet* output);
144 
148 
152 
156 
165 
170 
175 
176 private:
177  vtkGradientFilter(const vtkGradientFilter &); // Not implemented
178  void operator=(const vtkGradientFilter &); // Not implemented
179 };
180 
181 #endif //_vtkGradientFilter_h
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKFILTERSGENERAL_EXPORT
A general filter for gradient estimation.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()