VTK
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 
82 class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
83 {
84 public:
86 
90  static vtkSignedDistance *New();
92  void PrintSelf(ostream& os, vtkIndent indent) override;
94 
96 
99  vtkGetVectorMacro(Dimensions,int,3);
100  void SetDimensions(int i, int j, int k);
101  void SetDimensions(const int dim[3]);
103 
105 
109  vtkSetVector6Macro(Bounds,double);
110  vtkGetVectorMacro(Bounds,double,6);
112 
114 
120  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
121  vtkGetMacro(Radius,double);
123 
125 
130  void SetLocator(vtkAbstractPointLocator *locator);
131  vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
133 
140  void StartAppend();
141 
149  void Append(vtkPolyData *input);
150 
154  void EndAppend();
155 
156  // See the vtkAlgorithm for a description of what these do
159  vtkInformationVector*) override;
160 
161 protected:
163  ~vtkSignedDistance() override;
164 
165  int Dimensions[3];
166  double Bounds[6];
167  double Radius;
169 
170  // Flag tracks whether process needs initialization
172 
175  vtkInformationVector *) override;
178  int FillInputPortInformation(int, vtkInformation*) override;
179 
180 private:
181  vtkSignedDistance(const vtkSignedDistance&) = delete;
182  void operator=(const vtkSignedDistance&) = delete;
183 
184 };
185 
186 #endif
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
compute signed distances from an input point cloud
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
a simple class to control print indentation
Definition: vtkIndent.h:39
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
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.
vtkAbstractPointLocator * Locator