VTK  9.3.20240423
vtkPointCloudFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-CLAUSE
45#ifndef vtkPointCloudFilter_h
46#define vtkPointCloudFilter_h
47
48#include "vtkFiltersPointsModule.h" // For export macro
50
51VTK_ABI_NAMESPACE_BEGIN
52class vtkPointSet;
53class vtkPolyData;
54
55class VTKFILTERSPOINTS_EXPORT vtkPointCloudFilter : public vtkPolyDataAlgorithm
56{
57public:
59
63 void PrintSelf(ostream& os, vtkIndent indent) override;
65
75
81
83
90 vtkSetMacro(GenerateOutliers, bool);
91 vtkGetMacro(GenerateOutliers, bool);
92 vtkBooleanMacro(GenerateOutliers, bool);
94
96
102 vtkSetMacro(GenerateVertices, bool);
103 vtkGetMacro(GenerateVertices, bool);
104 vtkBooleanMacro(GenerateVertices, bool);
106
107protected:
110
111 // All derived classes must implement this method. Note that a side effect of
112 // the class is to populate the PointMap. Zero is returned on error.
113 virtual int FilterPoints(vtkPointSet* input) = 0;
114
115 // Keep track of which points are removed through the point map
118
119 // Does a second output need to be created?
121
122 // Should output vertex cells be created?
124
126 int FillInputPortInformation(int port, vtkInformation* info) override;
127
129
130private:
132 void operator=(const vtkPointCloudFilter&) = delete;
133};
134
135VTK_ABI_NAMESPACE_END
136#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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
Standard methods to obtain type information, and print information.
~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.
const vtkIdType * GetPointMap()
Retrieve a map which indicates, on a point-by-point basis, where each input point was placed into the...
concrete class for storing a set of points
Definition vtkPointSet.h:98
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkIdType
Definition vtkType.h:315