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 =========================================================================*/
71 #ifndef vtkDepthImageToPointCloud_h
72 #define vtkDepthImageToPointCloud_h
73 
74 #include "vtkRenderingImageModule.h" // For export macro
75 #include "vtkPolyDataAlgorithm.h"
76 
77 
78 class vtkCamera;
79 
80 class VTKRENDERINGIMAGE_EXPORT vtkDepthImageToPointCloud : public vtkPolyDataAlgorithm
81 {
82 public:
84 
89  void PrintSelf(ostream& os, vtkIndent indent);
91 
96 
103 
105 
109  vtkGetObjectMacro(Camera, vtkCamera);
111 
113 
118  vtkSetMacro(CullNearPoints,bool);
119  vtkGetMacro(CullNearPoints,bool);
120  vtkBooleanMacro(CullNearPoints,bool);
122 
124 
129  vtkSetMacro(CullFarPoints,bool);
130  vtkGetMacro(CullFarPoints,bool);
131  vtkBooleanMacro(CullFarPoints,bool);
133 
135 
140  vtkSetMacro(ProduceColorScalars,bool);
141  vtkGetMacro(ProduceColorScalars,bool);
142  vtkBooleanMacro(ProduceColorScalars,bool);
144 
146 
152  vtkSetMacro(ProduceVertexCellArray,bool);
153  vtkGetMacro(ProduceVertexCellArray,bool);
154  vtkBooleanMacro(ProduceVertexCellArray,bool);
156 
158 
163  vtkSetMacro(OutputPointsPrecision, int);
164  vtkGetMacro(OutputPointsPrecision, int);
166 
167 protected:
170 
177 
181 
182  virtual int RequestUpdateExtent(vtkInformation *request,
183  vtkInformationVector **inInfo,
184  vtkInformationVector *outInfo);
185 
186  virtual int RequestData(vtkInformation* request,
187  vtkInformationVector** inputVector,
188  vtkInformationVector* outputVector);
189 
192 
193 private:
194  vtkDepthImageToPointCloud(const vtkDepthImageToPointCloud&) VTK_DELETE_FUNCTION;
195  void operator=(const vtkDepthImageToPointCloud&) VTK_DELETE_FUNCTION;
196 
197 };
198 
199 #endif
vtkDepthImageToPointCloud::vtkDepthImageToPointCloud
vtkDepthImageToPointCloud()
vtkDepthImageToPointCloud::Camera
vtkCamera * Camera
Definition: vtkDepthImageToPointCloud.h:171
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkDepthImageToPointCloud::CullFarPoints
bool CullFarPoints
Definition: vtkDepthImageToPointCloud.h:173
vtkDepthImageToPointCloud::~vtkDepthImageToPointCloud
~vtkDepthImageToPointCloud()
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkDepthImageToPointCloud::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkDepthImageToPointCloud.h:176
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDepthImageToPointCloud::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkDepthImageToPointCloud::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkDepthImageToPointCloud::SetCamera
void SetCamera(vtkCamera *)
Indicates what camera was used to generate the depth image.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
vtkDepthImageToPointCloud::New
static vtkDepthImageToPointCloud * New()
Standard instantiation, type and print methods.
vtkDepthImageToPointCloud
convert a depth image into a point cloud
Definition: vtkDepthImageToPointCloud.h:81
vtkDepthImageToPointCloud::CullNearPoints
bool CullNearPoints
Definition: vtkDepthImageToPointCloud.h:172
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDepthImageToPointCloud::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDepthImageToPointCloud::GetMTime
vtkMTimeType GetMTime()
Return the MTime also considering the camera.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDepthImageToPointCloud::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
This is called by the superclass.
vtkDepthImageToPointCloud::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkDepthImageToPointCloud::ProduceColorScalars
bool ProduceColorScalars
Definition: vtkDepthImageToPointCloud.h:174
vtkDepthImageToPointCloud::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkDepthImageToPointCloud::ProduceVertexCellArray
bool ProduceVertexCellArray
Definition: vtkDepthImageToPointCloud.h:175
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45