VTK
vtkGenericContourFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericContourFilter.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 =========================================================================*/
45 #ifndef __vtkGenericContourFilter_h
46 #define __vtkGenericContourFilter_h
47 
48 #include "vtkPolyDataAlgorithm.h"
49 
50 class vtkContourValues;
52 class vtkPointData;
53 class vtkCellData;
54 
56 {
57 public:
58  vtkTypeMacro(vtkGenericContourFilter,
60 
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
65  static vtkGenericContourFilter *New();
66 
67  //BTX
68  typedef double PointType[3]; // Arbitrary definition of a point
69  //ETX
70 
72 
73  void SetValue(int i, float value);
74  double GetValue(int i);
75  double *GetValues();
76  void GetValues(double *contourValues);
77  void SetNumberOfContours(int number);
78  int GetNumberOfContours();
79  void GenerateValues(int numContours, double range[2]);
80  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
82 
84  unsigned long GetMTime();
85 
87 
91  vtkSetMacro(ComputeNormals,int);
92  vtkGetMacro(ComputeNormals,int);
93  vtkBooleanMacro(ComputeNormals,int);
95 
97 
103  vtkSetMacro(ComputeGradients,int);
104  vtkGetMacro(ComputeGradients,int);
105  vtkBooleanMacro(ComputeGradients,int);
107 
109 
110  vtkSetMacro(ComputeScalars,int);
111  vtkGetMacro(ComputeScalars,int);
112  vtkBooleanMacro(ComputeScalars,int);
114 
116 
118  void SetLocator(vtkIncrementalPointLocator *locator);
119  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
121 
124  void CreateDefaultLocator();
125 
127 
130  vtkGetStringMacro(InputScalarsSelection);
131  virtual void SelectInputScalars(const char *fieldName);
133 
134 protected:
137 
139 
141 
147 
149  vtkSetStringMacro(InputScalarsSelection);
150 
151  // Used internal by vtkGenericAdaptorCell::Contour()
155 
156 private:
157  vtkGenericContourFilter(const vtkGenericContourFilter&); // Not implemented.
158  void operator=(const vtkGenericContourFilter&); // Not implemented.
159 };
160 #endif