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 "vtkFiltersGenericModule.h" // For export macro
49 #include "vtkPolyDataAlgorithm.h"
50 
51 class vtkContourValues;
53 class vtkPointData;
54 class vtkCellData;
55 
57 {
58 public:
59  vtkTypeMacro(vtkGenericContourFilter,
61 
62  void PrintSelf(ostream& os, vtkIndent indent);
63 
66  static vtkGenericContourFilter *New();
67 
68  //BTX
69  typedef double PointType[3]; // Arbitrary definition of a point
70  //ETX
71 
73 
74  void SetValue(int i, float value);
75  double GetValue(int i);
76  double *GetValues();
77  void GetValues(double *contourValues);
78  void SetNumberOfContours(int number);
79  int GetNumberOfContours();
80  void GenerateValues(int numContours, double range[2]);
81  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
83 
85  unsigned long GetMTime();
86 
88 
92  vtkSetMacro(ComputeNormals,int);
93  vtkGetMacro(ComputeNormals,int);
94  vtkBooleanMacro(ComputeNormals,int);
96 
98 
104  vtkSetMacro(ComputeGradients,int);
105  vtkGetMacro(ComputeGradients,int);
106  vtkBooleanMacro(ComputeGradients,int);
108 
110 
111  vtkSetMacro(ComputeScalars,int);
112  vtkGetMacro(ComputeScalars,int);
113  vtkBooleanMacro(ComputeScalars,int);
115 
117 
119  void SetLocator(vtkIncrementalPointLocator *locator);
120  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
122 
125  void CreateDefaultLocator();
126 
128 
131  vtkGetStringMacro(InputScalarsSelection);
132  virtual void SelectInputScalars(const char *fieldName);
134 
135 protected:
138 
140 
142 
148 
150  vtkSetStringMacro(InputScalarsSelection);
151 
152  // Used internal by vtkGenericAdaptorCell::Contour()
156 
157 private:
158  vtkGenericContourFilter(const vtkGenericContourFilter&); // Not implemented.
159  void operator=(const vtkGenericContourFilter&); // Not implemented.
160 };
161 #endif
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
#define VTKFILTERSGENERIC_EXPORT
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkIncrementalPointLocator * Locator
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
generate isocontours from input dataset
Store zero or more vtkInformation instances.