VTK  9.2.5
vtkSignedDistance.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSignedDistance.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file 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 =========================================================================*/
121 #ifndef vtkSignedDistance_h
122 #define vtkSignedDistance_h
123 
124 #include "vtkFiltersPointsModule.h" // For export macro
125 #include "vtkImageAlgorithm.h"
126 
127 class vtkPolyData;
129 
130 class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
131 {
132 public:
134 
140  void PrintSelf(ostream& os, vtkIndent indent) override;
142 
144 
147  vtkGetVectorMacro(Dimensions, int, 3);
148  void SetDimensions(int i, int j, int k);
149  void SetDimensions(const int dim[3]);
151 
153 
157  vtkSetVector6Macro(Bounds, double);
158  vtkGetVectorMacro(Bounds, double, 6);
160 
162 
168  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
169  vtkGetMacro(Radius, double);
171 
173 
179  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
181 
188  void StartAppend();
189 
197  void Append(vtkPolyData* input);
198 
202  void EndAppend();
203 
204  // See the vtkAlgorithm for a description of what these do
207 
208 protected:
210  ~vtkSignedDistance() override;
211 
212  int Dimensions[3];
213  double Bounds[6];
214  double Radius;
216 
217  // Flag tracks whether process needs initialization
219 
223 
224 private:
225  vtkSignedDistance(const vtkSignedDistance&) = delete;
226  void operator=(const vtkSignedDistance&) = delete;
227 };
228 
229 #endif
abstract class to quickly locate points in 3-space
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
compute signed distances from an input point cloud
void Append(vtkPolyData *input)
Append a data set to the existing output.
int FillInputPortInformation(int, vtkInformation *) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
void SetDimensions(const int dim[3])
Set/Get the i-j-k dimensions on which to computer the distance function.
void StartAppend()
Initialize the filter for appending data.
vtkAbstractPointLocator * Locator
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
static vtkSignedDistance * New()
Standard methods for instantiating the class, providing type information, and printing.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating the class, providing type information, and printing.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
~vtkSignedDistance() override
void SetDimensions(int i, int j, int k)
Set/Get the i-j-k dimensions on which to computer the distance function.
void EndAppend()
Method completes the append process.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FLOAT_MAX
Definition: vtkType.h:163