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
33
34class VTKFILTERSPOINTS_EXPORT vtkConvertToPointCloud : public vtkPolyDataAlgorithm
35{
36public:
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
63protected:
65 ~vtkConvertToPointCloud() override = default;
66
68 int FillInputPortInformation(int port, vtkInformation* info) override;
69
70 int CellGenerationMode = POLYVERTEX_CELL;
71
72private:
74 void operator=(const vtkConvertToPointCloud&) = delete;
75};
76
77#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.