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:
61 
62  void PrintSelf(ostream& os, vtkIndent indent);
63 
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);
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 
122 
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
vtkGenericContourFilter
generate isocontours from input dataset
Definition: vtkGenericContourFilter.h:57
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkGenericContourFilter::GetMTime
unsigned long GetMTime()
vtkGenericContourFilter::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *)
vtkFiltersGenericModule.h
vtkGenericContourFilter::SetNumberOfContours
void SetNumberOfContours(int number)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkGenericContourFilter::ContourValues
vtkContourValues * ContourValues
Definition: vtkGenericContourFilter.h:143
vtkGenericContourFilter::GetValue
double GetValue(int i)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGenericContourFilter::CreateDefaultLocator
void CreateDefaultLocator()
vtkGenericContourFilter::ComputeGradients
int ComputeGradients
Definition: vtkGenericContourFilter.h:145
vtkGenericContourFilter::ComputeNormals
int ComputeNormals
Definition: vtkGenericContourFilter.h:144
vtkGenericContourFilter::vtkGenericContourFilter
vtkGenericContourFilter()
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkGenericContourFilter::GetNumberOfContours
int GetNumberOfContours()
vtkPolyDataAlgorithm.h
vtkGenericContourFilter::GetValues
double * GetValues()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkGenericContourFilter::InternalPD
vtkPointData * InternalPD
Definition: vtkGenericContourFilter.h:150
vtkGenericContourFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGenericContourFilter.h:147
vtkGenericContourFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGenericContourFilter::SecondaryCD
vtkCellData * SecondaryCD
Definition: vtkGenericContourFilter.h:155
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
VTKFILTERSGENERIC_EXPORT
#define VTKFILTERSGENERIC_EXPORT
Definition: vtkFiltersGenericModule.h:15
vtkGenericContourFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGenericContourFilter::SetValue
void SetValue(int i, float value)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkGenericContourFilter::InputScalarsSelection
char * InputScalarsSelection
Definition: vtkGenericContourFilter.h:149
vtkGenericContourFilter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkGenericContourFilter::SelectInputScalars
virtual void SelectInputScalars(const char *fieldName)
vtkGenericContourFilter::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkGenericContourFilter::New
static vtkGenericContourFilter * New()
vtkGenericContourFilter::ComputeScalars
int ComputeScalars
Definition: vtkGenericContourFilter.h:146
vtkGenericContourFilter::GetValues
void GetValues(double *contourValues)
vtkGenericContourFilter::SecondaryPD
vtkPointData * SecondaryPD
Definition: vtkGenericContourFilter.h:154
vtkGenericContourFilter::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkGenericContourFilter::~vtkGenericContourFilter
~vtkGenericContourFilter()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44