VTK
vtkPointCloudFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointCloudFilter.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 =========================================================================*/
57 #ifndef vtkPointCloudFilter_h
58 #define vtkPointCloudFilter_h
59 
60 #include "vtkFiltersPointsModule.h" // For export macro
61 #include "vtkPolyDataAlgorithm.h"
62 
63 class vtkPointSet;
64 class vtkPolyData;
65 
66 class VTKFILTERSPOINTS_EXPORT vtkPointCloudFilter : public vtkPolyDataAlgorithm
67 {
68 public:
70 
74  void PrintSelf(ostream& os, vtkIndent indent);
76 
86 
92 
94 
101  vtkSetMacro(GenerateOutliers,bool);
102  vtkGetMacro(GenerateOutliers,bool);
103  vtkBooleanMacro(GenerateOutliers,bool);
105 
107 
113  vtkSetMacro(GenerateVertices,bool);
114  vtkGetMacro(GenerateVertices,bool);
115  vtkBooleanMacro(GenerateVertices,bool);
117 
118 protected:
121 
122  // All derived classes must implement this method. Note that a side effect of
123  // the class is to populate the PointMap. Zero is returned on error.
124  virtual int FilterPoints(vtkPointSet *input) = 0;
125 
126  // Keep track of which points are removed through the point map
129 
130  // Does a second output need to be created?
132 
133  // Should output vertex cells be created?
135 
139 
141 
142 private:
143  vtkPointCloudFilter(const vtkPointCloudFilter&) VTK_DELETE_FUNCTION;
144  void operator=(const vtkPointCloudFilter&) VTK_DELETE_FUNCTION;
145 
146 };
147 
148 #endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class for filtering a point cloud
virtual int FilterPoints(vtkPointSet *input)=0
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
const vtkIdType * GetPointMap()
Retrieve a map which indicates, on a point-by-point basis, where each input point was placed into the...
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void GenerateVerticesIfRequested(vtkPolyData *output)
vtkIdType GetNumberOfPointsRemoved()
Return the number of points removed after filter execution.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:43
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287