VTK  9.0.1
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 =========================================================================*/
45 #ifndef vtkImageEuclideanDistance_h
46 #define vtkImageEuclideanDistance_h
47 
49 #include "vtkImagingGeneralModule.h" // For export macro
50 
51 #define VTK_EDT_SAITO_CACHED 0
52 #define VTK_EDT_SAITO 1
53 
54 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
68  vtkSetMacro(Initialize, vtkTypeBool);
69  vtkGetMacro(Initialize, vtkTypeBool);
70  vtkBooleanMacro(Initialize, vtkTypeBool);
72 
74 
78  vtkSetMacro(ConsiderAnisotropy, vtkTypeBool);
79  vtkGetMacro(ConsiderAnisotropy, vtkTypeBool);
80  vtkBooleanMacro(ConsiderAnisotropy, vtkTypeBool);
82 
84 
88  vtkSetMacro(MaximumDistance, double);
89  vtkGetMacro(MaximumDistance, double);
91 
93 
99  vtkSetMacro(Algorithm, int);
100  vtkGetMacro(Algorithm, int);
101  void SetAlgorithmToSaito() { this->SetAlgorithm(VTK_EDT_SAITO); }
102  void SetAlgorithmToSaitoCached() { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
104 
106 
107 protected:
110 
115 
116  // Replaces "EnlargeOutputUpdateExtent"
117  virtual void AllocateOutputScalars(vtkImageData* outData, int outExt[6], vtkInformation* outInfo);
118 
121 
122 private:
124  void operator=(const vtkImageEuclideanDistance&) = delete;
125 };
126 
127 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
Filters that execute axes in series.
virtual void AllocateOutputScalars(vtkImageData *outData, int outExt[6], vtkInformation *outInfo)
int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int IterativeRequestInformation(vtkInformation *in, vtkInformation *out) override
static vtkImageEuclideanDistance * New()
int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_EDT_SAITO
#define VTK_EDT_SAITO_CACHED