VTK  9.3.20240425
vtkDepthImageToPointCloud.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
59#ifndef vtkDepthImageToPointCloud_h
60#define vtkDepthImageToPointCloud_h
61
63#include "vtkRenderingImageModule.h" // For export macro
64
65VTK_ABI_NAMESPACE_BEGIN
66class vtkCamera;
67
68class VTKRENDERINGIMAGE_EXPORT vtkDepthImageToPointCloud : public vtkPolyDataAlgorithm
69{
70public:
72
77 void PrintSelf(ostream& os, vtkIndent indent) override;
79
84
91
93
97 vtkGetObjectMacro(Camera, vtkCamera);
99
101
106 vtkSetMacro(CullNearPoints, bool);
107 vtkGetMacro(CullNearPoints, bool);
108 vtkBooleanMacro(CullNearPoints, bool);
110
112
117 vtkSetMacro(CullFarPoints, bool);
118 vtkGetMacro(CullFarPoints, bool);
119 vtkBooleanMacro(CullFarPoints, bool);
121
123
128 vtkSetMacro(ProduceColorScalars, bool);
129 vtkGetMacro(ProduceColorScalars, bool);
130 vtkBooleanMacro(ProduceColorScalars, bool);
132
134
140 vtkSetMacro(ProduceVertexCellArray, bool);
141 vtkGetMacro(ProduceVertexCellArray, bool);
142 vtkBooleanMacro(ProduceVertexCellArray, bool);
144
146
151 vtkSetMacro(OutputPointsPrecision, int);
152 vtkGetMacro(OutputPointsPrecision, int);
154
155protected:
158
165
167
169 vtkInformationVector* outInfo) override;
170
172 vtkInformationVector* outputVector) override;
173
174 int FillInputPortInformation(int port, vtkInformation* info) override;
175 int FillOutputPortInformation(int port, vtkInformation* info) override;
176
177private:
179 void operator=(const vtkDepthImageToPointCloud&) = delete;
180};
181
182VTK_ABI_NAMESPACE_END
183#endif
a virtual camera for 3D rendering
Definition vtkCamera.h:151
convert a depth image into a point cloud
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
~vtkDepthImageToPointCloud() override
vtkMTimeType GetMTime() override
Return the MTime also considering the camera.
void SetCamera(vtkCamera *)
Indicates what camera was used to generate the depth image.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard instantiation, type and print methods.
static vtkDepthImageToPointCloud * New()
Standard instantiation, type and print methods.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outInfo) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270