42 #ifndef vtkMarchingSquares_h
43 #define vtkMarchingSquares_h
45 #include "vtkFiltersCoreModule.h"
67 vtkSetVectorMacro(ImageRange,
int,6);
68 vtkGetVectorMacro(ImageRange,
int,6);
69 void SetImageRange(
int imin,
int imax,
int jmin,
int jmax,
77 void SetValue(
int i,
double value);
78 double GetValue(
int i);
80 void GetValues(
double *contourValues);
81 void SetNumberOfContours(
int number);
82 int GetNumberOfContours();
83 void GenerateValues(
int numContours,
double range[2]);
84 void GenerateValues(
int numContours,
double rangeStart,
double rangeEnd);
99 void CreateDefaultLocator();
103 ~vtkMarchingSquares() VTK_OVERRIDE;
106 int FillInputPortInformation(
int port, vtkInformation *
info) VTK_OVERRIDE;
110 vtkIncrementalPointLocator *Locator;
113 vtkMarchingSquares(const vtkMarchingSquares&) VTK_DELETE_FUNCTION;
114 void operator=(const vtkMarchingSquares&) VTK_DELETE_FUNCTION;
121 inline
void vtkMarchingSquares::SetValue(
int i,
double value)
122 {this->ContourValues->
SetValue(i,value);}
128 {
return this->ContourValues->GetValue(i);}
135 {
return this->ContourValues->GetValues();}
143 {this->ContourValues->GetValues(contourValues);}
151 {this->ContourValues->SetNumberOfContours(number);}
157 {
return this->ContourValues->GetNumberOfContours();}
164 {this->ContourValues->GenerateValues(numContours, range);}
171 rangeStart,
double rangeEnd)
172 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
helper object to manage setting and generating contour values
int GetNumberOfContours()
Get the number of contours in the list of contour values.
double GetValue(int i)
Get the ith contour value.
Abstract class in support of both point location and point insertion.
generate isoline(s) from structured points set
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkTypeUInt64 vtkMTimeType
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
topologically and geometrically regular array of data
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
double * GetValues()
Get a pointer to an array of contour values.
void SetValue(int i, double value)
Set the ith contour value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.