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) VTK_OVERRIDE;
88 
92  vtkMTimeType GetMTime() VTK_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() VTK_OVERRIDE;
167 
168  vtkCamera *Camera;
169  bool CullNearPoints;
170  bool CullFarPoints;
171  bool ProduceColorScalars;
172  bool ProduceVertexCellArray;
173  int OutputPointsPrecision;
174 
175  int RequestInformation(vtkInformation*,
177  vtkInformationVector*) VTK_OVERRIDE;
178 
179  int RequestUpdateExtent(vtkInformation *request,
180  vtkInformationVector **inInfo,
181  vtkInformationVector *outInfo) VTK_OVERRIDE;
182 
183  int RequestData(vtkInformation* request,
184  vtkInformationVector** inputVector,
185  vtkInformationVector* outputVector) VTK_OVERRIDE;
186 
187  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
188  int FillOutputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
189 
190 private:
191  vtkDepthImageToPointCloud(const vtkDepthImageToPointCloud&) VTK_DELETE_FUNCTION;
192  void operator=(const vtkDepthImageToPointCloud&) VTK_DELETE_FUNCTION;
193 
194 };
195 
196 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual camera for 3D rendering
Definition: vtkCamera.h:44
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
convert a depth image into a point cloud
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.