VTK
vtkContourGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContourGrid.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 =========================================================================*/
51 #ifndef vtkContourGrid_h
52 #define vtkContourGrid_h
53 
54 #include "vtkFiltersCoreModule.h" // For export macro
55 #include "vtkPolyDataAlgorithm.h"
56 
57 #include "vtkContourValues.h" // Needed for inline methods
58 
59 class vtkEdgeTable;
60 class vtkScalarTree;
62 
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
71  static vtkContourGrid *New();
72 
74 
75  void SetValue(int i, double value);
76  double GetValue(int i);
77  double *GetValues();
78  void GetValues(double *contourValues);
79  void SetNumberOfContours(int number);
80  int GetNumberOfContours();
81  void GenerateValues(int numContours, double range[2]);
82  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
84 
86  unsigned long GetMTime();
87 
89 
93  vtkSetMacro(ComputeNormals,int);
94  vtkGetMacro(ComputeNormals,int);
95  vtkBooleanMacro(ComputeNormals,int);
97 
99 
106  vtkSetMacro(ComputeGradients,int);
107  vtkGetMacro(ComputeGradients,int);
108  vtkBooleanMacro(ComputeGradients,int);
110 
112 
113  vtkSetMacro(ComputeScalars,int);
114  vtkGetMacro(ComputeScalars,int);
115  vtkBooleanMacro(ComputeScalars,int);
117 
119 
120  vtkSetMacro(UseScalarTree,int);
121  vtkGetMacro(UseScalarTree,int);
122  vtkBooleanMacro(UseScalarTree,int);
124 
126 
131 
132 
134 
138  vtkSetMacro(GenerateTriangles,int);
139  vtkGetMacro(GenerateTriangles,int);
140  vtkBooleanMacro(GenerateTriangles,int);
142 
143 
147 
149 
155 
156 protected:
159 
162 
168 
174 
175 private:
176  vtkContourGrid(const vtkContourGrid&); // Not implemented.
177  void operator=(const vtkContourGrid&); // Not implemented.
178 };
179 
181 
183 inline void vtkContourGrid::SetValue(int i, double value)
184 {this->ContourValues->SetValue(i,value);}
186 
188 
189 inline double vtkContourGrid::GetValue(int i)
190 {return this->ContourValues->GetValue(i);}
192 
194 
197 {return this->ContourValues->GetValues();}
199 
201 
204 inline void vtkContourGrid::GetValues(double *contourValues)
205 {this->ContourValues->GetValues(contourValues);}
207 
209 
212 inline void vtkContourGrid::SetNumberOfContours(int number)
213 {this->ContourValues->SetNumberOfContours(number);}
215 
217 
219 {return this->ContourValues->GetNumberOfContours();}
221 
223 
225 inline void vtkContourGrid::GenerateValues(int numContours, double range[2])
226 {this->ContourValues->GenerateValues(numContours, range);}
228 
230 
232 inline void vtkContourGrid::GenerateValues(int numContours, double
233  rangeStart, double rangeEnd)
234 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
236 
237 
238 #endif
239 
240 
vtkContourGrid::CreateDefaultLocator
void CreateDefaultLocator()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkContourGrid::~vtkContourGrid
~vtkContourGrid()
vtkContourValues::GetValues
double * GetValues()
vtkContourGrid::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkContourGrid.h:225
vtkContourValues::GetNumberOfContours
int GetNumberOfContours()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkContourGrid::ComputeScalars
int ComputeScalars
Definition: vtkContourGrid.h:166
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkContourGrid::SetValue
void SetValue(int i, double value)
Definition: vtkContourGrid.h:183
vtkContourGrid::GenerateTriangles
int GenerateTriangles
Definition: vtkContourGrid.h:167
vtkEdgeTable
keep track of edges (edge is pair of integer id's)
Definition: vtkEdgeTable.h:40
vtkContourGrid::GetValues
double * GetValues()
Definition: vtkContourGrid.h:196
vtkgl::precision
GLenum GLint GLint * precision
Definition: vtkgl.h:14180
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkContourGrid::New
static vtkContourGrid * New()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourGrid::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkContourGrid::ComputeNormals
int ComputeNormals
Definition: vtkContourGrid.h:164
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkContourGrid::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkContourGrid::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkContourGrid.h:218
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkContourValues::GetValue
double GetValue(int i)
vtkContourGrid::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkContourGrid.h:212
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkContourValues::SetValue
void SetValue(int i, double value)
vtkContourGrid::EdgeTable
vtkEdgeTable * EdgeTable
Definition: vtkContourGrid.h:173
vtkContourGrid::ContourValues
vtkContourValues * ContourValues
Definition: vtkContourGrid.h:163
vtkContourGrid::SetOutputPointsPrecision
void SetOutputPointsPrecision(int precision)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkContourGrid
generate isosurfaces/isolines from scalar values (specialized for unstructured grids)
Definition: vtkContourGrid.h:64
vtkContourGrid::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkContourGrid.h:169
vtkContourValues.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkContourGrid::ComputeGradients
int ComputeGradients
Definition: vtkContourGrid.h:165
vtkContourGrid::GetValue
double GetValue(int i)
Definition: vtkContourGrid.h:189
vtkContourGrid::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkContourGrid::GetMTime
unsigned long GetMTime()
vtkContourGrid::vtkContourGrid
vtkContourGrid()
vtkContourGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkContourGrid::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkContourGrid.h:171
vtkContourGrid::UseScalarTree
int UseScalarTree
Definition: vtkContourGrid.h:170
vtkScalarTree
organize data according to scalar values (used to accelerate contouring operations)
Definition: vtkScalarTree.h:47
vtkContourGrid::ScalarTree
vtkScalarTree * ScalarTree
Definition: vtkContourGrid.h:172
vtkContourValues::SetNumberOfContours
void SetNumberOfContours(const int number)
vtkContourGrid::GetOutputPointsPrecision
int GetOutputPointsPrecision() const
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44