VTK  9.2.6
vtkConvertToPointCloud.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkConvertToPointCloud.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 =========================================================================*/
28 #ifndef vtkConvertToPointCloud_h
29 #define vtkConvertToPointCloud_h
30 
31 #include "vtkFiltersPointsModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class VTKFILTERSPOINTS_EXPORT vtkConvertToPointCloud : public vtkPolyDataAlgorithm
35 {
36 public:
37  static vtkConvertToPointCloud* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  typedef enum CellGeneration
42  {
43  NO_CELLS = 0,
44  POLYVERTEX_CELL = 1,
45  VERTEX_CELLS = 2
46  } CellGeneration;
47 
49 
59  vtkSetMacro(CellGenerationMode, int);
60  vtkGetMacro(CellGenerationMode, int);
62 
63 protected:
64  vtkConvertToPointCloud() = default;
65  ~vtkConvertToPointCloud() override = default;
66 
69 
70  int CellGenerationMode = POLYVERTEX_CELL;
71 
72 private:
74  void operator=(const vtkConvertToPointCloud&) = delete;
75 };
76 
77 #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:39
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.