VTK
vtkContourFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContourFilter.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 =========================================================================*/
52 #ifndef vtkContourFilter_h
53 #define vtkContourFilter_h
54 
55 #include "vtkFiltersCoreModule.h" // For export macro
56 #include "vtkPolyDataAlgorithm.h"
57 
58 #include "vtkContourValues.h" // Needed for inline methods
59 
61 class vtkScalarTree;
66 class vtkCallbackCommand;
67 
69 {
70 public:
72  void PrintSelf(ostream& os, vtkIndent indent);
73 
76  static vtkContourFilter *New();
77 
79 
80  void SetValue(int i, double value);
81  double GetValue(int i);
82  double *GetValues();
83  void GetValues(double *contourValues);
84  void SetNumberOfContours(int number);
85  int GetNumberOfContours();
86  void GenerateValues(int numContours, double range[2]);
87  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
89 
91  unsigned long GetMTime();
92 
94 
102  vtkSetMacro(ComputeNormals,int);
103  vtkGetMacro(ComputeNormals,int);
104  vtkBooleanMacro(ComputeNormals,int);
106 
108 
114  vtkSetMacro(ComputeGradients,int);
115  vtkGetMacro(ComputeGradients,int);
116  vtkBooleanMacro(ComputeGradients,int);
118 
120 
121  vtkSetMacro(ComputeScalars,int);
122  vtkGetMacro(ComputeScalars,int);
123  vtkBooleanMacro(ComputeScalars,int);
125 
127 
128  vtkSetMacro(UseScalarTree,int);
129  vtkGetMacro(UseScalarTree,int);
130  vtkBooleanMacro(UseScalarTree,int);
132 
134 
135  virtual void SetScalarTree(vtkScalarTree*);
138 
140 
145 
149 
151 
154  void SetArrayComponent( int );
157 
158 
160 
165  vtkSetMacro(GenerateTriangles,int);
166  vtkGetMacro(GenerateTriangles,int);
167  vtkBooleanMacro(GenerateTriangles,int);
169 
171 
177 
178 protected:
181 
183 
184  virtual int RequestData(vtkInformation* request,
185  vtkInformationVector** inputVector,
186  vtkInformationVector* outputVector);
191 
201 
207 
209  unsigned long eid,
210  void *clientData,
211  void *callData);
212 
213 private:
214  vtkContourFilter(const vtkContourFilter&); // Not implemented.
215  void operator=(const vtkContourFilter&); // Not implemented.
216 };
217 
219 
221 inline void vtkContourFilter::SetValue(int i, double value)
222 {this->ContourValues->SetValue(i,value);}
224 
226 
227 inline double vtkContourFilter::GetValue(int i)
228 {return this->ContourValues->GetValue(i);}
230 
232 
235 {return this->ContourValues->GetValues();}
237 
239 
242 inline void vtkContourFilter::GetValues(double *contourValues)
243 {this->ContourValues->GetValues(contourValues);}
245 
247 
251 {this->ContourValues->SetNumberOfContours(number);}
253 
255 
257 {return this->ContourValues->GetNumberOfContours();}
259 
261 
263 inline void vtkContourFilter::GenerateValues(int numContours, double range[2])
264 {this->ContourValues->GenerateValues(numContours, range);}
266 
268 
270 inline void vtkContourFilter::GenerateValues(int numContours, double
271  rangeStart, double rangeEnd)
272 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
274 
275 
276 #endif
277 
278 
vtkContourFilter::CreateDefaultLocator
void CreateDefaultLocator()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkContourFilter::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkContourFilter.h:256
vtkContourValues::GetValues
double * GetValues()
vtkContourValues::GetNumberOfContours
int GetNumberOfContours()
vtkContourFilter::GetArrayComponent
int GetArrayComponent()
vtkContourFilter::InternalProgressCallbackFunction
static void InternalProgressCallbackFunction(vtkObject *caller, unsigned long eid, void *clientData, void *callData)
vtkContourFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkContourFilter.h:199
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkContourFilter::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkContourFilter::GetValues
double * GetValues()
Definition: vtkContourFilter.h:234
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkContourFilter::GetMTime
unsigned long GetMTime()
vtkContourFilter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkContourFilter::GenerateTriangles
int GenerateTriangles
Definition: vtkContourFilter.h:200
vtkContourFilter::GridSynchronizedTemplates
vtkGridSynchronizedTemplates3D * GridSynchronizedTemplates
Definition: vtkContourFilter.h:204
vtkContourFilter::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *)
vtkSynchronizedTemplates2D
generate isoline(s) from a structured points set
Definition: vtkSynchronizedTemplates2D.h:40
vtkGridSynchronizedTemplates3D
generate isosurface from structured grids
Definition: vtkGridSynchronizedTemplates3D.h:39
vtkContourFilter::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkContourFilter.h:263
vtkContourFilter::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkContourFilter::SetArrayComponent
void SetArrayComponent(int)
vtkgl::precision
GLenum GLint GLint * precision
Definition: vtkgl.h:14180
vtkContourFilter::ContourValues
vtkContourValues * ContourValues
Definition: vtkContourFilter.h:192
vtkFiltersCoreModule.h
vtkContourFilter::ScalarTree
vtkScalarTree * ScalarTree
Definition: vtkContourFilter.h:198
vtkPolyDataAlgorithm.h
vtkContourFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkContourFilter.h:196
vtkRectilinearSynchronizedTemplates
generate isosurface from rectilinear grid
Definition: vtkRectilinearSynchronizedTemplates.h:44
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkContourFilter::UseScalarTree
int UseScalarTree
Definition: vtkContourFilter.h:197
vtkContourFilter::GetValue
double GetValue(int i)
Definition: vtkContourFilter.h:227
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourFilter::RectilinearSynchronizedTemplates
vtkRectilinearSynchronizedTemplates * RectilinearSynchronizedTemplates
Definition: vtkContourFilter.h:205
vtkContourFilter::SynchronizedTemplates3D
vtkSynchronizedTemplates3D * SynchronizedTemplates3D
Definition: vtkContourFilter.h:203
vtkContourFilter::SynchronizedTemplates2D
vtkSynchronizedTemplates2D * SynchronizedTemplates2D
Definition: vtkContourFilter.h:202
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkContourFilter::~vtkContourFilter
~vtkContourFilter()
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkContourFilter::GetOutputPointsPrecision
int GetOutputPointsPrecision() const
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkContourValues::GetValue
double GetValue(int i)
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkContourValues::SetValue
void SetValue(int i, double value)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
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
vtkContourFilter::vtkContourFilter
vtkContourFilter()
vtkContourFilter::ComputeGradients
int ComputeGradients
Definition: vtkContourFilter.h:194
vtkContourFilter::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkContourFilter.h:250
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:50
vtkSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkSynchronizedTemplates3D.h:43
vtkContourFilter::ComputeNormals
int ComputeNormals
Definition: vtkContourFilter.h:193
vtkContourFilter::SetValue
void SetValue(int i, double value)
Definition: vtkContourFilter.h:221
vtkContourFilter::InternalProgressCallbackCommand
vtkCallbackCommand * InternalProgressCallbackCommand
Definition: vtkContourFilter.h:206
vtkScalarTree
organize data according to scalar values (used to accelerate contouring operations)
Definition: vtkScalarTree.h:47
vtkContourFilter::New
static vtkContourFilter * New()
vtkContourFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkContourValues::SetNumberOfContours
void SetNumberOfContours(const int number)
vtkContourFilter::SetOutputPointsPrecision
void SetOutputPointsPrecision(int precision)
vtkContourFilter
generate isosurfaces/isolines from scalar values
Definition: vtkContourFilter.h:69
vtkContourFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkContourFilter::ComputeScalars
int ComputeScalars
Definition: vtkContourFilter.h:195
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44
vtkContourFilter::SetScalarTree
virtual void SetScalarTree(vtkScalarTree *)