VTK  9.1.0
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
62
63class vtkPointSet;
64class vtkPolyData;
65
66class VTKFILTERSPOINTS_EXPORT vtkPointCloudFilter : public vtkPolyDataAlgorithm
67{
68public:
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
118protected:
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
141private:
143 void operator=(const vtkPointCloudFilter&) = delete;
144};
145
146#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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:106
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:332