VTK  9.2.6
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 =========================================================================*/
72 #ifndef vtkSignedDistance_h
73 #define vtkSignedDistance_h
74 
75 #include "vtkFiltersPointsModule.h" // For export macro
76 #include "vtkImageAlgorithm.h"
77 
78 class vtkPolyData;
80 
81 class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
82 {
83 public:
85 
89  static vtkSignedDistance* New();
91  void PrintSelf(ostream& os, vtkIndent indent) override;
93 
95 
98  vtkGetVectorMacro(Dimensions, int, 3);
99  void SetDimensions(int i, int j, int k);
100  void SetDimensions(const int dim[3]);
102 
104 
108  vtkSetVector6Macro(Bounds, double);
109  vtkGetVectorMacro(Bounds, double, 6);
111 
113 
119  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
120  vtkGetMacro(Radius, double);
122 
124 
129  void SetLocator(vtkAbstractPointLocator* locator);
130  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
132 
139  void StartAppend();
140 
148  void Append(vtkPolyData* input);
149 
153  void EndAppend();
154 
155  // See the vtkAlgorithm for a description of what these do
158 
159 protected:
161  ~vtkSignedDistance() override;
162 
163  int Dimensions[3];
164  double Bounds[6];
165  double Radius;
167 
168  // Flag tracks whether process needs initialization
170 
173  int FillInputPortInformation(int, vtkInformation*) override;
174 
175 private:
176  vtkSignedDistance(const vtkSignedDistance&) = delete;
177  void operator=(const vtkSignedDistance&) = delete;
178 };
179 
180 #endif
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
compute signed distances from an input point cloud
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class to quickly locate points in 3-space
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
vtkAbstractPointLocator * Locator