VTK  9.1.0
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 =========================================================================*/
25 #ifndef vtkConvertToPointCloud_h
26 #define vtkConvertToPointCloud_h
27 
28 #include "vtkFiltersPointsModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class VTKFILTERSPOINTS_EXPORT vtkConvertToPointCloud : public vtkPolyDataAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  typedef enum CellGeneration
39  {
40  NO_CELLS = 0,
41  POLYVERTEX_CELL = 1,
42  VERTEX_CELLS = 2
43  } CellGeneration;
44 
46 
56  vtkSetMacro(CellGenerationMode, int);
57  vtkGetMacro(CellGenerationMode, int);
59 
60 protected:
62  ~vtkConvertToPointCloud() override = default;
63 
66 
67  int CellGenerationMode = POLYVERTEX_CELL;
68 
69 private:
71  void operator=(const vtkConvertToPointCloud&) = delete;
72 };
73 
74 #endif
vtkConvertToPointCloud::vtkConvertToPointCloud
vtkConvertToPointCloud()=default
vtkConvertToPointCloud
Convert any dataset to a point cloud.
Definition: vtkConvertToPointCloud.h:32
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkConvertToPointCloud::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkConvertToPointCloud::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkConvertToPointCloud::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkConvertToPointCloud::CellGeneration
CellGeneration
Definition: vtkConvertToPointCloud.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkConvertToPointCloud::~vtkConvertToPointCloud
~vtkConvertToPointCloud() override=default
vtkConvertToPointCloud::New
static vtkConvertToPointCloud * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:151