VTK  9.2.6
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 
85  const vtkIdType* GetPointMap();
86 
91  vtkIdType GetNumberOfPointsRemoved();
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:
120  ~vtkPointCloudFilter() override;
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 
137  int FillInputPortInformation(int port, vtkInformation* info) override;
138 
139  void GenerateVerticesIfRequested(vtkPolyData* output);
140 
141 private:
142  vtkPointCloudFilter(const vtkPointCloudFilter&) = delete;
143  void operator=(const vtkPointCloudFilter&) = delete;
144 };
145 
146 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete class for storing a set of points
Definition: vtkPointSet.h:69
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
abstract class for filtering a point cloud
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.