VTK  9.3.20240907
vtkConvertToPointCloud.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
16#ifndef vtkConvertToPointCloud_h
17#define vtkConvertToPointCloud_h
18
19#include "vtkFiltersPointsModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKFILTERSPOINTS_EXPORT vtkConvertToPointCloud : public vtkPolyDataAlgorithm
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
30 typedef enum CellGeneration
31 {
32 NO_CELLS = 0,
33 POLYVERTEX_CELL = 1,
34 VERTEX_CELLS = 2
35 } CellGeneration;
36
38
48 vtkSetMacro(CellGenerationMode, int);
49 vtkGetMacro(CellGenerationMode, int);
51
52protected:
54 ~vtkConvertToPointCloud() override = default;
55
57 int FillInputPortInformation(int port, vtkInformation* info) override;
58
59 int CellGenerationMode = POLYVERTEX_CELL;
60
61private:
63 void operator=(const vtkConvertToPointCloud&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
Convert any dataset to a point cloud.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkConvertToPointCloud() override=default
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkConvertToPointCloud * New()
vtkConvertToPointCloud()=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.