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 =========================================================================*/
68 #ifndef vtkSignedDistance_h
69 #define vtkSignedDistance_h
70 
71 #include "vtkFiltersPointsModule.h" // For export macro
72 #include "vtkImageAlgorithm.h"
73 
74 class vtkPolyData;
76 
77 
78 class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
79 {
80 public:
82 
86  static vtkSignedDistance *New();
88  void PrintSelf(ostream& os, vtkIndent indent);
90 
92 
95  vtkGetVectorMacro(Dimensions,int,3);
96  void SetDimensions(int i, int j, int k);
97  void SetDimensions(int dim[3]);
99 
101 
105  vtkSetVector6Macro(Bounds,double);
106  vtkGetVectorMacro(Bounds,double,6);
108 
110 
114  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
115  vtkGetMacro(Radius,double);
117 
119 
124  void SetLocator(vtkAbstractPointLocator *locator);
125  vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
127 
134  void StartAppend();
135 
143  void Append(vtkPolyData *input);
144 
148  void EndAppend();
149 
150  // See the vtkAlgorithm for a desciption of what these do
154 
155 protected:
158 
159  int Dimensions[3];
160  double Bounds[6];
161  double Radius;
163 
164  // Flag tracks whether process needs initialization
166 
167  virtual int RequestInformation (vtkInformation *,
170  virtual int RequestData (vtkInformation *,
172  virtual int FillInputPortInformation(int, vtkInformation*);
173 
174 private:
175  vtkSignedDistance(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
176  void operator=(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
177 
178 };
179 
180 #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:161
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