VTK  9.3.1
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
20 #include "vtkPolyDataAlgorithm.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKFILTERSPOINTS_EXPORT vtkConvertToPointCloud : public vtkPolyDataAlgorithm
24 {
25 public:
26  static vtkConvertToPointCloud* New();
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 
52 protected:
53  vtkConvertToPointCloud() = default;
54  ~vtkConvertToPointCloud() override = default;
55 
58 
59  int CellGenerationMode = POLYVERTEX_CELL;
60 
61 private:
63  void operator=(const vtkConvertToPointCloud&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
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.