VTK
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 =========================================================================*/
68 #ifndef vtkDepthImageToPointCloud_h
69 #define vtkDepthImageToPointCloud_h
70 
71 #include "vtkPolyDataAlgorithm.h"
72 #include "vtkRenderingImageModule.h" // For export macro
73 
74 class vtkCamera;
75 
76 class VTKRENDERINGIMAGE_EXPORT vtkDepthImageToPointCloud : public vtkPolyDataAlgorithm
77 {
78 public:
80 
85  void PrintSelf(ostream& os, vtkIndent indent) override;
87 
91  vtkMTimeType GetMTime() override;
92 
98  void SetCamera(vtkCamera*);
99 
101 
105  vtkGetObjectMacro(Camera, vtkCamera);
107 
109 
114  vtkSetMacro(CullNearPoints, bool);
115  vtkGetMacro(CullNearPoints, bool);
116  vtkBooleanMacro(CullNearPoints, bool);
118 
120 
125  vtkSetMacro(CullFarPoints, bool);
126  vtkGetMacro(CullFarPoints, bool);
127  vtkBooleanMacro(CullFarPoints, bool);
129 
131 
136  vtkSetMacro(ProduceColorScalars, bool);
137  vtkGetMacro(ProduceColorScalars, bool);
138  vtkBooleanMacro(ProduceColorScalars, bool);
140 
142 
148  vtkSetMacro(ProduceVertexCellArray, bool);
149  vtkGetMacro(ProduceVertexCellArray, bool);
150  vtkBooleanMacro(ProduceVertexCellArray, bool);
152 
154 
159  vtkSetMacro(OutputPointsPrecision, int);
160  vtkGetMacro(OutputPointsPrecision, int);
162 
163 protected:
165  ~vtkDepthImageToPointCloud() override;
166 
173 
175 
177  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
178 
179  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
180  vtkInformationVector* outputVector) override;
181 
182  int FillInputPortInformation(int port, vtkInformation* info) override;
184 
185 private:
187  void operator=(const vtkDepthImageToPointCloud&) = delete;
188 };
189 
190 #endif
vtkDepthImageToPointCloud::Camera
vtkCamera * Camera
Definition: vtkDepthImageToPointCloud.h:167
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkDepthImageToPointCloud::CullFarPoints
bool CullFarPoints
Definition: vtkDepthImageToPointCloud.h:169
vtkPolyDataAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkDepthImageToPointCloud::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkDepthImageToPointCloud.h:172
vtkX3D::port
Definition: vtkX3D.h:453
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
vtkDepthImageToPointCloud
convert a depth image into a point cloud
Definition: vtkDepthImageToPointCloud.h:76
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDepthImageToPointCloud::CullNearPoints
bool CullNearPoints
Definition: vtkDepthImageToPointCloud.h:168
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkDepthImageToPointCloud::ProduceColorScalars
bool ProduceColorScalars
Definition: vtkDepthImageToPointCloud.h:170
vtkDepthImageToPointCloud::ProduceVertexCellArray
bool ProduceVertexCellArray
Definition: vtkDepthImageToPointCloud.h:171
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:298
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41