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 
37 #ifndef __vtkGradientFilter_h
38 #define __vtkGradientFilter_h
39 
40 #include "vtkDataSetAlgorithm.h"
41 
43 {
44 public:
46  virtual void PrintSelf(ostream &os, vtkIndent indent);
47 
48  static vtkGradientFilter *New();
49 
51 
56  virtual void SetInputScalars(int fieldAssociation, const char *name);
57  virtual void SetInputScalars(int fieldAssociation, int fieldAttributeType);
59 
61 
63  vtkGetStringMacro(ResultArrayName);
64  vtkSetStringMacro(ResultArrayName);
66 
68 
75  vtkGetMacro(FasterApproximation, int);
76  vtkSetMacro(FasterApproximation, int);
77  vtkBooleanMacro(FasterApproximation, int);
79 
81 
83  vtkSetMacro(ComputeVorticity, int);
84  vtkGetMacro(ComputeVorticity, int);
85  vtkBooleanMacro(ComputeVorticity, int);
87 
89 
94  vtkSetMacro(ComputeQCriterion, int);
95  vtkGetMacro(ComputeQCriterion, int);
96  vtkBooleanMacro(ComputeQCriterion, int);
98 
99 protected:
102 
103  virtual int RequestUpdateExtent(vtkInformation *,
108 
110 
113  virtual int ComputeUnstructuredGridGradient(
114  vtkDataArray* Array, int fieldAssociation, vtkDataSet* input,
115  vtkDataSet* output);
117 
119 
122  virtual int ComputeRegularGridGradient(
123  vtkDataArray* Array, int fieldAssociation, vtkDataSet* output);
125 
128 
137 
142 
147 
148 private:
149  vtkGradientFilter(const vtkGradientFilter &); // Not implemented
150  void operator=(const vtkGradientFilter &); // Not implemented
151 };
152 
153 #endif //_vtkGradientFilter_h