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 =========================================================================*/
65 #ifndef vtkSignedDistance_h
66 #define vtkSignedDistance_h
67 
68 #include "vtkFiltersPointsModule.h" // For export macro
69 #include "vtkImageAlgorithm.h"
70 
71 class vtkPolyData;
73 
74 
75 class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
76 {
77 public:
79 
83  static vtkSignedDistance *New();
85  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
87 
89 
92  vtkGetVectorMacro(Dimensions,int,3);
93  void SetDimensions(int i, int j, int k);
94  void SetDimensions(int dim[3]);
96 
98 
102  vtkSetVector6Macro(Bounds,double);
103  vtkGetVectorMacro(Bounds,double,6);
105 
107 
111  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
112  vtkGetMacro(Radius,double);
114 
116 
121  void SetLocator(vtkAbstractPointLocator *locator);
122  vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
124 
131  void StartAppend();
132 
140  void Append(vtkPolyData *input);
141 
145  void EndAppend();
146 
147  // See the vtkAlgorithm for a desciption of what these do
150  vtkInformationVector*) VTK_OVERRIDE;
151 
152 protected:
154  ~vtkSignedDistance() VTK_OVERRIDE;
155 
156  int Dimensions[3];
157  double Bounds[6];
158  double Radius;
160 
161  // Flag tracks whether process needs initialization
162  int Initialized;
163 
164  int RequestInformation (vtkInformation *,
166  vtkInformationVector *) VTK_OVERRIDE;
167  int RequestData (vtkInformation *,
168  vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
169  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
170 
171 private:
172  vtkSignedDistance(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
173  void operator=(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
174 
175 };
176 
177 #endif
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
compute signed distances from an input point cloud
#define VTK_FLOAT_MAX
Definition: vtkType.h:165
a simple class to control print indentation
Definition: vtkIndent.h:33
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
abstract class to quickly locate points in 3-space
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.