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
74class vtkPolyData;
76
77
78class VTKFILTERSPOINTS_EXPORT vtkSignedDistance : public vtkImageAlgorithm
79{
80public:
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
135
143 void Append(vtkPolyData *input);
144
148 void EndAppend();
149
150 // See the vtkAlgorithm for a desciption of what these do
154
155protected:
158
159 int Dimensions[3];
160 double Bounds[6];
161 double Radius;
163
164 // Flag tracks whether process needs initialization
166
173
174private:
175 vtkSignedDistance(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
176 void operator=(const vtkSignedDistance&) VTK_DELETE_FUNCTION;
177
178};
179
180#endif
abstract class to quickly locate points in 3-space
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
compute signed distances from an input point cloud
void Append(vtkPolyData *input)
Append a data set to the existing output.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
void StartAppend()
Initialize the filter for appending data.
vtkAbstractPointLocator * Locator
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Process a request from the executive.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetDimensions(int dim[3])
static vtkSignedDistance * New()
Standard methods for instantiating the class, providing type information, and printing.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
void SetDimensions(int i, int j, int k)
void EndAppend()
Method completes the append process.
#define VTK_FLOAT_MAX
Definition: vtkType.h:161