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 "vtkPolyDataAlgorithm.h"
56 
57 #include "vtkContourValues.h" // Needed for inline methods
58 
60 class vtkScalarTree;
65 
67 {
68 public:
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
74  static vtkContourFilter *New();
75 
77 
78  void SetValue(int i, double value);
79  double GetValue(int i);
80  double *GetValues();
81  void GetValues(double *contourValues);
82  void SetNumberOfContours(int number);
83  int GetNumberOfContours();
84  void GenerateValues(int numContours, double range[2]);
85  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
87 
89  unsigned long GetMTime();
90 
92 
96  vtkSetMacro(ComputeNormals,int);
97  vtkGetMacro(ComputeNormals,int);
98  vtkBooleanMacro(ComputeNormals,int);
100 
102 
108  vtkSetMacro(ComputeGradients,int);
109  vtkGetMacro(ComputeGradients,int);
110  vtkBooleanMacro(ComputeGradients,int);
112 
114 
115  vtkSetMacro(ComputeScalars,int);
116  vtkGetMacro(ComputeScalars,int);
117  vtkBooleanMacro(ComputeScalars,int);
119 
121 
122  vtkSetMacro(UseScalarTree,int);
123  vtkGetMacro(UseScalarTree,int);
124  vtkBooleanMacro(UseScalarTree,int);
126 
128 
129  virtual void SetScalarTree(vtkScalarTree*);
130  vtkGetObjectMacro(ScalarTree,vtkScalarTree);
132 
134 
136  void SetLocator(vtkIncrementalPointLocator *locator);
137  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
139 
142  void CreateDefaultLocator();
143 
145 
148  void SetArrayComponent( int );
149  int GetArrayComponent();
151 
153 
154  virtual int ProcessRequest(vtkInformation*,
158 
159 protected:
161  ~vtkContourFilter();
162 
163  virtual void ReportReferences(vtkGarbageCollector*);
164 
165  virtual int RequestData(vtkInformation* request,
166  vtkInformationVector** inputVector,
167  vtkInformationVector* outputVector);
168  virtual int RequestUpdateExtent(vtkInformation*,
172 
180 
185 
186 private:
187  vtkContourFilter(const vtkContourFilter&); // Not implemented.
188  void operator=(const vtkContourFilter&); // Not implemented.
189 };
190 
192 
194 inline void vtkContourFilter::SetValue(int i, double value)
195 {this->ContourValues->SetValue(i,value);}
197 
199 
200 inline double vtkContourFilter::GetValue(int i)
201 {return this->ContourValues->GetValue(i);}
203 
205 
208 {return this->ContourValues->GetValues();}
210 
212 
215 inline void vtkContourFilter::GetValues(double *contourValues)
216 {this->ContourValues->GetValues(contourValues);}
218 
220 
224 {this->ContourValues->SetNumberOfContours(number);}
226 
228 
230 {return this->ContourValues->GetNumberOfContours();}
232 
234 
236 inline void vtkContourFilter::GenerateValues(int numContours, double range[2])
237 {this->ContourValues->GenerateValues(numContours, range);}
239 
241 
243 inline void vtkContourFilter::GenerateValues(int numContours, double
244  rangeStart, double rangeEnd)
245 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
247 
248 
249 #endif
250 
251