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 "vtkRenderingImageModule.h" // For export macro
72 #include "vtkPolyDataAlgorithm.h"
73 
74 
75 class vtkCamera;
76 
77 class VTKRENDERINGIMAGE_EXPORT vtkDepthImageToPointCloud : public vtkPolyDataAlgorithm
78 {
79 public:
81 
86  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
92  vtkMTimeType GetMTime() override;
93 
99  void SetCamera(vtkCamera*);
100 
102 
106  vtkGetObjectMacro(Camera, vtkCamera);
108 
110 
115  vtkSetMacro(CullNearPoints,bool);
116  vtkGetMacro(CullNearPoints,bool);
117  vtkBooleanMacro(CullNearPoints,bool);
119 
121 
126  vtkSetMacro(CullFarPoints,bool);
127  vtkGetMacro(CullFarPoints,bool);
128  vtkBooleanMacro(CullFarPoints,bool);
130 
132 
137  vtkSetMacro(ProduceColorScalars,bool);
138  vtkGetMacro(ProduceColorScalars,bool);
139  vtkBooleanMacro(ProduceColorScalars,bool);
141 
143 
149  vtkSetMacro(ProduceVertexCellArray,bool);
150  vtkGetMacro(ProduceVertexCellArray,bool);
151  vtkBooleanMacro(ProduceVertexCellArray,bool);
153 
155 
160  vtkSetMacro(OutputPointsPrecision, int);
161  vtkGetMacro(OutputPointsPrecision, int);
163 
164 protected:
166  ~vtkDepthImageToPointCloud() override;
167 
174 
177  vtkInformationVector*) override;
178 
179  int RequestUpdateExtent(vtkInformation *request,
180  vtkInformationVector **inInfo,
181  vtkInformationVector *outInfo) override;
182 
183  int RequestData(vtkInformation* request,
184  vtkInformationVector** inputVector,
185  vtkInformationVector* outputVector) override;
186 
187  int FillInputPortInformation(int port, vtkInformation *info) override;
189 
190 private:
192  void operator=(const vtkDepthImageToPointCloud&) = delete;
193 
194 };
195 
196 #endif
vtkDepthImageToPointCloud::Camera
vtkCamera * Camera
Definition: vtkDepthImageToPointCloud.h:168
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:170
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:173
vtkX3D::port
Definition: vtkX3D.h:447
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:44
vtkDepthImageToPointCloud
convert a depth image into a point cloud
Definition: vtkDepthImageToPointCloud.h:77
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:169
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkDepthImageToPointCloud::ProduceColorScalars
bool ProduceColorScalars
Definition: vtkDepthImageToPointCloud.h:171
vtkDepthImageToPointCloud::ProduceVertexCellArray
bool ProduceVertexCellArray
Definition: vtkDepthImageToPointCloud.h:172
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41