Patented/vtkMarchingSquares.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00057 #ifndef __vtkMarchingSquares_h
00058 #define __vtkMarchingSquares_h
00059
00060 #include "vtkPolyDataSource.h"
00061
00062 #include "vtkContourValues.h"
00063
00064 class vtkImageData;
00065 class vtkPointLocator;
00066
00067 class VTK_PATENTED_EXPORT vtkMarchingSquares : public vtkPolyDataSource
00068 {
00069 public:
00070 static vtkMarchingSquares *New();
00071 vtkTypeRevisionMacro(vtkMarchingSquares,vtkPolyDataSource);
00072 void PrintSelf(ostream& os, vtkIndent indent);
00073
00075
00076 void SetInput(vtkImageData *input);
00077 vtkImageData *GetInput();
00079
00081
00085 vtkSetVectorMacro(ImageRange,int,6);
00086 vtkGetVectorMacro(ImageRange,int,6);
00087 void SetImageRange(int imin, int imax, int jmin, int jmax,
00088 int kmin, int kmax);
00090
00091
00092 void SetValue(int i, double value);
00093 double GetValue(int i);
00094 double *GetValues();
00095 void GetValues(double *contourValues);
00096 void SetNumberOfContours(int number);
00097 int GetNumberOfContours();
00098 void GenerateValues(int numContours, double range[2]);
00099 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
00100
00101
00102 unsigned long int GetMTime();
00103
00104 void SetLocator(vtkPointLocator *locator);
00105 vtkGetObjectMacro(Locator,vtkPointLocator);
00106
00109 void CreateDefaultLocator();
00110
00111 protected:
00112 vtkMarchingSquares();
00113 ~vtkMarchingSquares();
00114
00115 void Execute();
00116
00117 vtkContourValues *ContourValues;
00118 int ImageRange[6];
00119 vtkPointLocator *Locator;
00120 private:
00121 vtkMarchingSquares(const vtkMarchingSquares&);
00122 void operator=(const vtkMarchingSquares&);
00123 };
00124
00127 inline void vtkMarchingSquares::SetValue(int i, double value)
00128 {this->ContourValues->SetValue(i,value);}
00129
00131
00132 inline double vtkMarchingSquares::GetValue(int i)
00133 {return this->ContourValues->GetValue(i);}
00135
00137
00139 inline double *vtkMarchingSquares::GetValues()
00140 {return this->ContourValues->GetValues();}
00142
00146 inline void vtkMarchingSquares::GetValues(double *contourValues)
00147 {this->ContourValues->GetValues(contourValues);}
00148
00152 inline void vtkMarchingSquares::SetNumberOfContours(int number)
00153 {this->ContourValues->SetNumberOfContours(number);}
00154
00156
00157 inline int vtkMarchingSquares::GetNumberOfContours()
00158 {return this->ContourValues->GetNumberOfContours();}
00160
00162
00164 inline void vtkMarchingSquares::GenerateValues(int numContours, double range[2])
00165 {this->ContourValues->GenerateValues(numContours, range);}
00167
00169
00171 inline void vtkMarchingSquares::GenerateValues(int numContours, double
00172 rangeStart, double rangeEnd)
00173 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
00175
00176 #endif
00177