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 
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 
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;
179 
180 private:
181  vtkSignedDistance(const vtkSignedDistance&) = delete;
182  void operator=(const vtkSignedDistance&) = delete;
183 
184 };
185 
186 #endif
vtkSignedDistance::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSignedDistance
compute signed distances from an input point cloud
Definition: vtkSignedDistance.h:83
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSignedDistance::SetDimensions
void SetDimensions(int i, int j, int k)
vtkSignedDistance::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
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
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
vtkSignedDistance::StartAppend
void StartAppend()
Initialize the filter for appending data.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSignedDistance::SetDimensions
void SetDimensions(const int dim[3])
vtkSignedDistance::~vtkSignedDistance
~vtkSignedDistance() override
vtkSignedDistance::Initialized
int Initialized
Definition: vtkSignedDistance.h:171
vtkSignedDistance::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
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:168
vtkSignedDistance::vtkSignedDistance
vtkSignedDistance()
vtkSignedDistance::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkSignedDistance::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
vtkSignedDistance::Radius
double Radius
Definition: vtkSignedDistance.h:167
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.