VTK
vtkImageEuclideanDistance.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageEuclideanDistance.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 =========================================================================*/
47 #ifndef __vtkImageEuclideanDistance_h
48 #define __vtkImageEuclideanDistance_h
49 
51 
52 #define VTK_EDT_SAITO_CACHED 0
53 #define VTK_EDT_SAITO 1
54 
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
69  int SplitExtent(int splitExt[6], int startExt[6],
70  int num, int total);
72 
74 
78  vtkSetMacro(Initialize, int);
79  vtkGetMacro(Initialize, int);
80  vtkBooleanMacro(Initialize, int);
82 
84 
86  vtkSetMacro(ConsiderAnisotropy, int);
87  vtkGetMacro(ConsiderAnisotropy, int);
88  vtkBooleanMacro(ConsiderAnisotropy, int);
90 
92 
94  vtkSetMacro(MaximumDistance, double);
95  vtkGetMacro(MaximumDistance, double);
97 
99 
101  vtkSetMacro(Algorithm, int);
102  vtkGetMacro(Algorithm, int);
104  { this->SetAlgorithm(VTK_EDT_SAITO); }
106  { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
108 
112 
113 protected:
116 
121 
122  // Replaces "EnlargeOutputUpdateExtent"
123  virtual void AllocateOutputScalars(vtkImageData *outData);
124 
126  vtkInformation* out);
128  vtkInformation* out);
129 
130 private:
131  vtkImageEuclideanDistance(const vtkImageEuclideanDistance&); // Not implemented.
132  void operator=(const vtkImageEuclideanDistance&); // Not implemented.
133 };
134 
135 #endif
136 
137 
138 
139 
140 
141 
142 
143 
144 
145