VTK  9.3.20240423
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
59#ifndef vtkRadiusOutlierRemoval_h
60#define vtkRadiusOutlierRemoval_h
61
62#include "vtkFiltersPointsModule.h" // For export macro
63#include "vtkPointCloudFilter.h"
64
65VTK_ABI_NAMESPACE_BEGIN
67class vtkPointSet;
68
69class VTKFILTERSPOINTS_EXPORT vtkRadiusOutlierRemoval : public vtkPointCloudFilter
70{
71public:
73
79 void PrintSelf(ostream& os, vtkIndent indent) override;
81
83
86 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
87 vtkGetMacro(Radius, double);
89
91
95 vtkSetClampMacro(NumberOfNeighbors, int, 1, VTK_INT_MAX);
96 vtkGetMacro(NumberOfNeighbors, int);
98
100
106 vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
108
109protected:
112
113 double Radius;
116
117 // All derived classes must implement this method. Note that a side effect of
118 // the class is to populate the PointMap. Zero is returned if there is a failure.
119 int FilterPoints(vtkPointSet* input) override;
120
121private:
123 void operator=(const vtkRadiusOutlierRemoval&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition vtkPointSet.h:98
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