VTK
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 =========================================================================*/
52 #ifndef vtkRadiusOutlierRemoval_h
53 #define vtkRadiusOutlierRemoval_h
54 
55 #include "vtkFiltersPointsModule.h" // For export macro
56 #include "vtkPointCloudFilter.h"
57 
59 class vtkPointSet;
60 
61 
62 class VTKFILTERSPOINTS_EXPORT vtkRadiusOutlierRemoval : public vtkPointCloudFilter
63 {
64 public:
66 
70  static vtkRadiusOutlierRemoval *New();
72  void PrintSelf(ostream& os, vtkIndent indent);
74 
76 
79  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
80  vtkGetMacro(Radius,double);
82 
84 
88  vtkSetClampMacro(NumberOfNeighbors,int,1,VTK_INT_MAX);
89  vtkGetMacro(NumberOfNeighbors,int);
91 
93 
98  void SetLocator(vtkAbstractPointLocator *locator);
99  vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
101 
102 protected:
105 
106  double Radius;
109 
110  // All derived classes must implement this method. Note that a side effect of
111  // the class is to populate the PointMap. Zero is returned if there is a failure.
112  virtual int FilterPoints(vtkPointSet *input);
113 
114 private:
115  vtkRadiusOutlierRemoval(const vtkRadiusOutlierRemoval&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkRadiusOutlierRemoval&) VTK_DELETE_FUNCTION;
117 
118 };
119 
120 #endif
remove isolated points
#define VTK_INT_MAX
Definition: vtkType.h:153
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
virtual int FilterPoints(vtkPointSet *input)=0
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:161
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class to quickly locate points in 3-space
vtkAbstractPointLocator * Locator
abstract class for filtering a point cloud
void PrintSelf(ostream &os, vtkIndent indent)
Standard methods to obtain type information, and print information.