VTK  9.2.6
vtkDepthImageToPointCloud.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDepthImageToPointCloud.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
71 #ifndef vtkDepthImageToPointCloud_h
72 #define vtkDepthImageToPointCloud_h
73 
74 #include "vtkPolyDataAlgorithm.h"
75 #include "vtkRenderingImageModule.h" // For export macro
76 
77 class vtkCamera;
78 
79 class VTKRENDERINGIMAGE_EXPORT vtkDepthImageToPointCloud : public vtkPolyDataAlgorithm
80 {
81 public:
83 
88  void PrintSelf(ostream& os, vtkIndent indent) override;
90 
94  vtkMTimeType GetMTime() override;
95 
101  void SetCamera(vtkCamera*);
102 
104 
108  vtkGetObjectMacro(Camera, vtkCamera);
110 
112 
117  vtkSetMacro(CullNearPoints, bool);
118  vtkGetMacro(CullNearPoints, bool);
119  vtkBooleanMacro(CullNearPoints, bool);
121 
123 
128  vtkSetMacro(CullFarPoints, bool);
129  vtkGetMacro(CullFarPoints, bool);
130  vtkBooleanMacro(CullFarPoints, bool);
132 
134 
139  vtkSetMacro(ProduceColorScalars, bool);
140  vtkGetMacro(ProduceColorScalars, bool);
141  vtkBooleanMacro(ProduceColorScalars, bool);
143 
145 
151  vtkSetMacro(ProduceVertexCellArray, bool);
152  vtkGetMacro(ProduceVertexCellArray, bool);
153  vtkBooleanMacro(ProduceVertexCellArray, bool);
155 
157 
162  vtkSetMacro(OutputPointsPrecision, int);
163  vtkGetMacro(OutputPointsPrecision, int);
165 
166 protected:
168  ~vtkDepthImageToPointCloud() override;
169 
176 
178 
179  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
180  vtkInformationVector* outInfo) override;
181 
182  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
183  vtkInformationVector* outputVector) override;
184 
185  int FillInputPortInformation(int port, vtkInformation* info) override;
187 
188 private:
190  void operator=(const vtkDepthImageToPointCloud&) = delete;
191 };
192 
193 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual vtkMTimeType GetMTime()
Return this object's modified time.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
convert a depth image into a point cloud
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.