VTK
vtkMarchingSquares.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMarchingSquares.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 =========================================================================*/
41 #ifndef vtkMarchingSquares_h
42 #define vtkMarchingSquares_h
43 
44 #include "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkPolyDataAlgorithm.h"
46 
47 #include "vtkContourValues.h" // Passes calls to vtkContourValues
48 
49 class vtkImageData;
51 
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
64  vtkSetVectorMacro(ImageRange,int,6);
65  vtkGetVectorMacro(ImageRange,int,6);
66  void SetImageRange(int imin, int imax, int jmin, int jmax,
67  int kmin, int kmax);
69 
71 
72  void SetValue(int i, double value);
73  double GetValue(int i);
74  double *GetValues();
75  void GetValues(double *contourValues);
76  void SetNumberOfContours(int number);
77  int GetNumberOfContours();
78  void GenerateValues(int numContours, double range[2]);
79  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
81 
83  unsigned long int GetMTime();
84 
87 
91 
92 protected:
95 
98 
100  int ImageRange[6];
102 
103 private:
104  vtkMarchingSquares(const vtkMarchingSquares&); // Not implemented.
105  void operator=(const vtkMarchingSquares&); // Not implemented.
106 };
107 
109 
111 inline void vtkMarchingSquares::SetValue(int i, double value)
112 {this->ContourValues->SetValue(i,value);}
114 
116 
117 inline double vtkMarchingSquares::GetValue(int i)
118 {return this->ContourValues->GetValue(i);}
120 
122 
125 {return this->ContourValues->GetValues();}
127 
129 
132 inline void vtkMarchingSquares::GetValues(double *contourValues)
133 {this->ContourValues->GetValues(contourValues);}
135 
137 
141 {this->ContourValues->SetNumberOfContours(number);}
143 
145 
147 {return this->ContourValues->GetNumberOfContours();}
149 
151 
153 inline void vtkMarchingSquares::GenerateValues(int numContours, double range[2])
154 {this->ContourValues->GenerateValues(numContours, range);}
156 
158 
160 inline void vtkMarchingSquares::GenerateValues(int numContours, double
161  rangeStart, double rangeEnd)
162 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
164 
165 #endif
vtkMarchingSquares::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkMarchingSquares::GetValue
double GetValue(int i)
Definition: vtkMarchingSquares.h:117
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkMarchingSquares::SetImageRange
void SetImageRange(int imin, int imax, int jmin, int jmax, int kmin, int kmax)
vtkMarchingSquares::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkMarchingSquares.h:140
vtkMarchingSquares::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkMarchingSquares::vtkMarchingSquares
vtkMarchingSquares()
vtkContourValues::GetValues
double * GetValues()
vtkContourValues::GetNumberOfContours
int GetNumberOfContours()
vtkMarchingSquares::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkMarchingSquares.h:153
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkMarchingSquares::GetValues
double * GetValues()
Definition: vtkMarchingSquares.h:124
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkMarchingSquares::~vtkMarchingSquares
~vtkMarchingSquares()
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkMarchingSquares
generate isoline(s) from structured points set
Definition: vtkMarchingSquares.h:53
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkMarchingSquares::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkMarchingSquares::ContourValues
vtkContourValues * ContourValues
Definition: vtkMarchingSquares.h:99
vtkMarchingSquares::New
static vtkMarchingSquares * New()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkMarchingSquares::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkMarchingSquares.h:101
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkContourValues::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkContourValues::GetValue
double GetValue(int i)
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkMarchingSquares::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkContourValues::SetValue
void SetValue(int i, double value)
vtkContourValues.h
vtkMarchingSquares::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkMarchingSquares.h:146
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkSetVectorMacro
#define vtkSetVectorMacro(name, type, count)
Definition: vtkSetGet.h:406
vtkMarchingSquares::CreateDefaultLocator
void CreateDefaultLocator()
vtkContourValues::SetNumberOfContours
void SetNumberOfContours(const int number)
vtkMarchingSquares::SetValue
void SetValue(int i, double value)
Definition: vtkMarchingSquares.h:111
vtkMarchingSquares::GetMTime
unsigned long int GetMTime()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44