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 
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 
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 
170  virtual int RequestData (vtkInformation *,
173 
174 private:
175  vtkSignedDistance(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
176  void operator=(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
177 
178 };
179 
180 #endif
vtkSignedDistance
compute signed distances from an input point cloud
Definition: vtkSignedDistance.h:79
vtkSignedDistance::~vtkSignedDistance
~vtkSignedDistance()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSignedDistance::SetDimensions
void SetDimensions(int i, int j, int k)
vtkSignedDistance::SetDimensions
void SetDimensions(int dim[3])
vtkSignedDistance::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkSignedDistance::New
static vtkSignedDistance * New()
Standard methods for instantiating the class, providing type information, and printing.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSignedDistance::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSignedDistance::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:161
vtkSignedDistance::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
vtkSignedDistance::StartAppend
void StartAppend()
Initialize the filter for appending data.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSignedDistance::Initialized
int Initialized
Definition: vtkSignedDistance.h:165
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:42
vtkSignedDistance::Locator
vtkAbstractPointLocator * Locator
Definition: vtkSignedDistance.h:162
vtkSignedDistance::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Process a request from the executive.
vtkSignedDistance::vtkSignedDistance
vtkSignedDistance()
vtkSignedDistance::Radius
double Radius
Definition: vtkSignedDistance.h:161
vtkSignedDistance::EndAppend
void EndAppend()
Method completes the append process.
vtkSignedDistance::SetLocator
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
vtkSignedDistance::Append
void Append(vtkPolyData *input)
Append a data set to the existing output.