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 =========================================================================*/
46 #ifndef vtkGenericContourFilter_h
47 #define vtkGenericContourFilter_h
48 
49 #include "vtkFiltersGenericModule.h" // For export macro
50 #include "vtkPolyDataAlgorithm.h"
51 
52 class vtkContourValues;
54 class vtkPointData;
55 class vtkCellData;
56 
57 class VTKFILTERSGENERIC_EXPORT vtkGenericContourFilter : public vtkPolyDataAlgorithm
58 {
59 public:
60  vtkTypeMacro(vtkGenericContourFilter,
62 
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
70 
71  typedef double PointType[3]; // Arbitrary definition of a point
72 
74 
77  void SetValue(int i, float value);
78  double GetValue(int i);
79  double *GetValues();
80  void GetValues(double *contourValues);
81  void SetNumberOfContours(int number);
83  void GenerateValues(int numContours, double range[2]);
84  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
86 
91 
93 
99  vtkSetMacro(ComputeNormals,int);
100  vtkGetMacro(ComputeNormals,int);
101  vtkBooleanMacro(ComputeNormals,int);
103 
105 
113  vtkSetMacro(ComputeGradients,int);
114  vtkGetMacro(ComputeGradients,int);
115  vtkBooleanMacro(ComputeGradients,int);
117 
119 
122  vtkSetMacro(ComputeScalars,int);
123  vtkGetMacro(ComputeScalars,int);
124  vtkBooleanMacro(ComputeScalars,int);
126 
128 
133  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
135 
141 
143 
148  vtkGetStringMacro(InputScalarsSelection);
149  virtual void SelectInputScalars(const char *fieldName);
151 
152 protected:
155 
157 
159 
165 
167  vtkSetStringMacro(InputScalarsSelection);
168 
169  // Used internal by vtkGenericAdaptorCell::Contour()
173 
174 private:
175  vtkGenericContourFilter(const vtkGenericContourFilter&) VTK_DELETE_FUNCTION;
176  void operator=(const vtkGenericContourFilter&) VTK_DELETE_FUNCTION;
177 };
178 #endif
represent and manipulate cell attribute data
Definition: vtkCellData.h:39
helper object to manage setting and generating contour values
generate isocontours from input dataset
vtkMTimeType GetMTime()
Modified GetMTime Because we delegate to vtkContourValues.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void CreateDefaultLocator()
Create default locator.
void GetValues(double *contourValues)
void SetNumberOfContours(int number)
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
double GetValue(int i)
static vtkGenericContourFilter * New()
Construct object with initial range (0,1) and single contour value of 0.0.
vtkIncrementalPointLocator * Locator
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual void SelectInputScalars(const char *fieldName)
void SetValue(int i, float value)
Methods to set / get contour values.
void GenerateValues(int numContours, double range[2])
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:38
Superclass for algorithms that produce only polydata as output.
@ value
Definition: vtkX3D.h:220
@ range
Definition: vtkX3D.h:238
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248