VTK  9.0.1
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) override;
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 
138 
140 
141 private:
142  vtkPointCloudFilter(const vtkPointCloudFilter&) = delete;
143  void operator=(const vtkPointCloudFilter&) = delete;
144 };
145 
146 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class for filtering a point cloud
virtual int FilterPoints(vtkPointSet *input)=0
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
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...
~vtkPointCloudFilter() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GenerateVerticesIfRequested(vtkPolyData *output)
vtkIdType GetNumberOfPointsRemoved()
Return the number of points removed after filter execution.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:63
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:338