pointcloud-gl.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 #include "opengl3.h"
6 #include "proc/pointcloud.h"
7 #include "synthetic-stream-gl.h"
8 
9 namespace librealsense
10 {
11  namespace gl
12  {
14  {
15  public:
16  pointcloud_gl();
17  ~pointcloud_gl() override;
18 
19  private:
20  void cleanup_gpu_resources() override;
21  void create_gpu_resources() override;
22 
23  const float3 * depth_to_points(
24  rs2::points output,
27  float depth_scale) override;
28  void get_texture_map(rs2::points output,
29  const float3* points,
30  const unsigned int width,
31  const unsigned int height,
32  const rs2_intrinsics &other_intrinsics,
33  const rs2_extrinsics& extr,
34  float2* pixels_ptr) override;
36  const rs2::frame_source& source,
37  const rs2::frame& f) override;
38 
39  bool run__occlusion_filter(const rs2_extrinsics& extr) override;
40 
41  std::shared_ptr<rs2::visualizer_2d> _projection_renderer;
42  std::shared_ptr<rs2::visualizer_2d> _occu_renderer;
43 
45  float _depth_scale;
47  int _enabled = 0;
48  };
49  }
50 }
std::shared_ptr< rs2::visualizer_2d > _projection_renderer
Definition: pointcloud-gl.h:41
const float3 * depth_to_points(rs2::points output, const rs2_intrinsics &depth_intrinsics, const rs2::depth_frame &depth_frame, float depth_scale) override
GLdouble f
void get_texture_map(rs2::points output, const float3 *points, const unsigned int width, const unsigned int height, const rs2_intrinsics &other_intrinsics, const rs2_extrinsics &extr, float2 *pixels_ptr) override
GLint GLsizei GLsizei height
rs2::points allocate_points(const rs2::frame_source &source, const rs2::frame &f) override
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
Definition: rs_sensor.h:96
rs2_extrinsics extr
Definition: test-pose.cpp:258
Video stream intrinsics.
Definition: rs_types.h:58
GLsizei GLsizei GLchar * source
std::shared_ptr< rs2::visualizer_2d > _occu_renderer
Definition: pointcloud-gl.h:42
GLint GLsizei width
bool run__occlusion_filter(const rs2_extrinsics &extr) override


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:39