VTK  9.1.0
vtkRadiusOutlierRemoval.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRadiusOutlierRemoval.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 vtkRadiusOutlierRemoval_h
69#define vtkRadiusOutlierRemoval_h
70
71#include "vtkFiltersPointsModule.h" // For export macro
72#include "vtkPointCloudFilter.h"
73
75class vtkPointSet;
76
77class VTKFILTERSPOINTS_EXPORT vtkRadiusOutlierRemoval : public vtkPointCloudFilter
78{
79public:
81
87 void PrintSelf(ostream& os, vtkIndent indent) override;
89
91
94 vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
95 vtkGetMacro(Radius, double);
97
99
103 vtkSetClampMacro(NumberOfNeighbors, int, 1, VTK_INT_MAX);
104 vtkGetMacro(NumberOfNeighbors, int);
106
108
114 vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
116
117protected:
120
121 double Radius;
124
125 // All derived classes must implement this method. Note that a side effect of
126 // the class is to populate the PointMap. Zero is returned if there is a failure.
127 int FilterPoints(vtkPointSet* input) override;
128
129private:
131 void operator=(const vtkRadiusOutlierRemoval&) = delete;
132};
133
134#endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:106
remove isolated points
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:155
#define VTK_FLOAT_MAX
Definition: vtkType.h:163