Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::gl::pointcloud_gl Class Reference

#include <pointcloud-gl.h>

Inheritance diagram for librealsense::gl::pointcloud_gl:
Inheritance graph
[legend]

Public Member Functions

 pointcloud_gl ()
 
 ~pointcloud_gl () override
 
- Public Member Functions inherited from librealsense::pointcloud
 pointcloud ()
 
virtual void preprocess ()
 
- Public Member Functions inherited from librealsense::stream_filter_processing_block
 stream_filter_processing_block (const char *name)
 
virtual ~stream_filter_processing_block ()
 
- Public Member Functions inherited from librealsense::generic_processing_block
 generic_processing_block (const char *name)
 
virtual ~generic_processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block
synthetic_source_interfaceget_source () override
 
void invoke (frame_holder frames) override
 
 processing_block (const char *name)
 
void set_output_callback (frame_callback_ptr callback) override
 
void set_processing_callback (frame_processor_callback_ptr callback) override
 
virtual ~processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block_interface
virtual ~processing_block_interface ()=default
 
- Public Member Functions inherited from librealsense::options_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::options_container
void create_snapshot (std::shared_ptr< options_interface > &snapshot) const override
 
void enable_recording (std::function< void(const options_interface &)> record_action) override
 
optionget_option (rs2_option id) override
 
const optionget_option (rs2_option id) const override
 
std::shared_ptr< optionget_option_handler (rs2_option id)
 
std::shared_ptr< optionget_option_handler (rs2_option id) const
 
virtual const char * get_option_name (rs2_option option) const override
 
std::vector< rs2_optionget_supported_options () const override
 
void register_option (rs2_option id, std::shared_ptr< option > option)
 
bool supports_option (rs2_option id) const override
 
void unregister_option (rs2_option id)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
const std::stringget_info (rs2_camera_info info) const override
 
void register_info (rs2_camera_info info, const std::string &val)
 
bool supports_info (rs2_camera_info info) const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from librealsense::gl::gpu_processing_object
 gpu_processing_object ()
 
void set_context (std::weak_ptr< context > ctx)
 
virtual ~gpu_processing_object ()
 

Private Member Functions

rs2::points allocate_points (const rs2::frame_source &source, const rs2::frame &f) override
 
void cleanup_gpu_resources () override
 
void create_gpu_resources () override
 
const float3depth_to_points (rs2::points output, const rs2_intrinsics &depth_intrinsics, const rs2::depth_frame &depth_frame, float depth_scale) override
 
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
 
bool run__occlusion_filter (const rs2_extrinsics &extr) override
 

Private Attributes

rs2::depth_frame _depth_data
 
rs2_intrinsics _depth_intr
 
float _depth_scale
 
int _enabled = 0
 
std::shared_ptr< rs2::visualizer_2d_occu_renderer
 
std::shared_ptr< rs2::visualizer_2d_projection_renderer
 

Additional Inherited Members

- Static Public Member Functions inherited from librealsense::pointcloud
static std::shared_ptr< pointcloudcreate ()
 
- Protected Member Functions inherited from librealsense::pointcloud
void inspect_depth_frame (const rs2::frame &depth)
 
void inspect_other_frame (const rs2::frame &other)
 
 pointcloud (const char *name)
 
rs2::frame process_depth_frame (const rs2::frame_source &source, const rs2::depth_frame &depth)
 
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
 
void set_extrinsics ()
 
bool should_process (const rs2::frame &frame) override
 
- Protected Member Functions inherited from librealsense::stream_filter_processing_block
bool should_process (const rs2::frame &frame) override
 
- Protected Member Functions inherited from librealsense::generic_processing_block
virtual rs2::frame prepare_output (const rs2::frame_source &source, rs2::frame input, std::vector< rs2::frame > results)
 
- Protected Member Functions inherited from librealsense::gl::gpu_processing_object
rs2::visualizer_2dget_texture_visualizer ()
 
void initialize ()
 
template<class T , class S >
void perform_gl_action (T action, S fallback)
 
- Protected Member Functions inherited from librealsense::gl::gpu_object
bool glsl_enabled () const
 
 gpu_object ()=default
 
void need_cleanup ()
 
void use_glsl (bool val)
 
- Protected Attributes inherited from librealsense::pointcloud
optional_value< rs2_intrinsics_depth_intrinsics
 
rs2::frame _depth_stream
 
optional_value< float > _depth_units
 
optional_value< rs2_extrinsics_extrinsics
 
std::shared_ptr< occlusion_filter_occlusion_filter
 
optional_value< rs2_intrinsics_other_intrinsics
 
rs2::frame _other_stream
 
rs2::stream_profile _output_stream
 
std::vector< float2_pixels_map
 
stream_filter _prev_stream_filter
 
std::shared_ptr< pointcloud_registered_auto_calib_cb
 
- Protected Attributes inherited from librealsense::stream_filter_processing_block
stream_filter _stream_filter
 
- Protected Attributes inherited from librealsense::processing_block
frame_processor_callback_ptr _callback
 
std::mutex _mutex
 
frame_source _source
 
synthetic_source _source_wrapper
 
- Protected Attributes inherited from librealsense::options_container
std::map< rs2_option, std::shared_ptr< option > > _options
 
std::function< void(const options_interface &)> _recording_function = [](const options_interface&) {}
 

Detailed Description

Definition at line 13 of file pointcloud-gl.h.

Constructor & Destructor Documentation

pointcloud_gl::pointcloud_gl ( )

Definition at line 397 of file pointcloud-gl.cpp.

pointcloud_gl::~pointcloud_gl ( )
override

Definition at line 389 of file pointcloud-gl.cpp.

Member Function Documentation

rs2::points pointcloud_gl::allocate_points ( const rs2::frame_source source,
const rs2::frame f 
)
overrideprivatevirtual

Reimplemented from librealsense::pointcloud.

Definition at line 606 of file pointcloud-gl.cpp.

void pointcloud_gl::cleanup_gpu_resources ( )
overrideprivatevirtual

Implements librealsense::gl::gpu_object.

Definition at line 373 of file pointcloud-gl.cpp.

void pointcloud_gl::create_gpu_resources ( )
overrideprivatevirtual

Implements librealsense::gl::gpu_object.

Definition at line 379 of file pointcloud-gl.cpp.

const librealsense::float3 * pointcloud_gl::depth_to_points ( rs2::points  output,
const rs2_intrinsics depth_intrinsics,
const rs2::depth_frame depth_frame,
float  depth_scale 
)
overrideprivatevirtual

Reimplemented from librealsense::pointcloud.

Definition at line 409 of file pointcloud-gl.cpp.

void pointcloud_gl::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,
librealsense::float2 pixels_ptr 
)
overrideprivatevirtual

Reimplemented from librealsense::pointcloud.

Definition at line 425 of file pointcloud-gl.cpp.

bool pointcloud_gl::run__occlusion_filter ( const rs2_extrinsics extr)
overrideprivatevirtual

Reimplemented from librealsense::pointcloud.

Definition at line 618 of file pointcloud-gl.cpp.

Member Data Documentation

rs2::depth_frame librealsense::gl::pointcloud_gl::_depth_data
private

Definition at line 44 of file pointcloud-gl.h.

rs2_intrinsics librealsense::gl::pointcloud_gl::_depth_intr
private

Definition at line 46 of file pointcloud-gl.h.

float librealsense::gl::pointcloud_gl::_depth_scale
private

Definition at line 45 of file pointcloud-gl.h.

int librealsense::gl::pointcloud_gl::_enabled = 0
private

Definition at line 47 of file pointcloud-gl.h.

std::shared_ptr<rs2::visualizer_2d> librealsense::gl::pointcloud_gl::_occu_renderer
private

Definition at line 42 of file pointcloud-gl.h.

std::shared_ptr<rs2::visualizer_2d> librealsense::gl::pointcloud_gl::_projection_renderer
private

Definition at line 41 of file pointcloud-gl.h.


The documentation for this class was generated from the following files:


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