VTK  9.6.1
vtkHausdorffDistancePointSetFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) 2011 LTSI INSERM U642
3// SPDX-License-Identifier: BSD-3-Clause
29
30#ifndef vtkHausdorffDistancePointSetFilter_h
31#define vtkHausdorffDistancePointSetFilter_h
32
33#include "vtkFiltersModelingModule.h" // For export macro
35
36VTK_ABI_NAMESPACE_BEGIN
37class VTKFILTERSMODELING_EXPORT vtkHausdorffDistancePointSetFilter : public vtkPointSetAlgorithm
38{
39public:
41
46 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
53 vtkGetVector2Macro(RelativeDistance, double);
55
57
60 vtkGetMacro(HausdorffDistance, double);
62
68
70
78 vtkSetMacro(TargetDistanceMethod, int);
79 vtkGetMacro(TargetDistanceMethod, int);
82 const char* GetTargetDistanceMethodAsString();
84
85protected:
88
90 int FillInputPortInformation(int port, vtkInformation* info) override;
91
93 double RelativeDistance[2];
95
96private:
98 void operator=(const vtkHausdorffDistancePointSetFilter&) = delete;
99};
101{
103 {
104 return "PointToPoint";
105 }
106 else
107 {
108 return "PointToCell";
109 }
110}
111VTK_ABI_NAMESPACE_END
112#endif
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double RelativeDistance[2]
relative distance between inputs
void SetTargetDistanceMethodToPointToCell()
Specify the strategy for computing the distance.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type and printing.
int TargetDistanceMethod
point-to-point if 0, point-to-cell if 1
static vtkHausdorffDistancePointSetFilter * New()
Standard methods for construction, type and printing.
double HausdorffDistance
hausdorff distance (max(relative distance))
virtual void SetTargetDistanceMethod(int)
Specify the strategy for computing the distance.
int FillInputPortInformation(int port, vtkInformation *info) override
void SetTargetDistanceMethodToPointToPoint()
Specify the strategy for computing the distance.
const char * GetTargetDistanceMethodAsString()
Specify the strategy for computing the distance.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.