VTK  9.3.0
vtkRadiusOutlierRemoval.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-CLAUSE
49#ifndef vtkRadiusOutlierRemoval_h
50#define vtkRadiusOutlierRemoval_h
51
52#include "vtkFiltersPointsModule.h" // For export macro
53#include "vtkPointCloudFilter.h"
54
55VTK_ABI_NAMESPACE_BEGIN
57class vtkPointSet;
58
59class VTKFILTERSPOINTS_EXPORT vtkRadiusOutlierRemoval : public vtkPointCloudFilter
60{
61public:
63
69 void PrintSelf(ostream& os, vtkIndent indent) override;
71
73
76 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
77 vtkGetMacro(Radius, double);
79
81
85 vtkSetClampMacro(NumberOfNeighbors, int, 1, VTK_INT_MAX);
86 vtkGetMacro(NumberOfNeighbors, int);
88
90
96 vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
98
99protected:
102
103 double Radius;
106
107 // All derived classes must implement this method. Note that a side effect of
108 // the class is to populate the PointMap. Zero is returned if there is a failure.
109 int FilterPoints(vtkPointSet* input) override;
110
111private:
113 void operator=(const vtkRadiusOutlierRemoval&) = delete;
114};
115
116VTK_ABI_NAMESPACE_END
117#endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition vtkIndent.h:38
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition vtkPointSet.h:68
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
static vtkRadiusOutlierRemoval * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
vtkAbstractPointLocator * Locator
int FilterPoints(vtkPointSet *input) override
~vtkRadiusOutlierRemoval() override
#define VTK_INT_MAX
Definition vtkType.h:144
#define VTK_FLOAT_MAX
Definition vtkType.h:152