VTK  9.0.1
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 =========================================================================*/
49 #ifndef vtkRadiusOutlierRemoval_h
50 #define vtkRadiusOutlierRemoval_h
51 
52 #include "vtkFiltersPointsModule.h" // For export macro
53 #include "vtkPointCloudFilter.h"
54 
56 class vtkPointSet;
57 
58 class VTKFILTERSPOINTS_EXPORT vtkRadiusOutlierRemoval : public vtkPointCloudFilter
59 {
60 public:
62 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
72 
75  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
76  vtkGetMacro(Radius, double);
78 
80 
84  vtkSetClampMacro(NumberOfNeighbors, int, 1, VTK_INT_MAX);
85  vtkGetMacro(NumberOfNeighbors, int);
87 
89 
95  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
97 
98 protected:
101 
102  double Radius;
105 
106  // All derived classes must implement this method. Note that a side effect of
107  // the class is to populate the PointMap. Zero is returned if there is a failure.
108  int FilterPoints(vtkPointSet* input) override;
109 
110 private:
112  void operator=(const vtkRadiusOutlierRemoval&) = delete;
113 };
114 
115 #endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract class for filtering a point cloud
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:63
remove isolated points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
static vtkRadiusOutlierRemoval * New()
Standard methods for instantiating, obtaining type information, and printing information.
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