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

#include <pc-shader.h>

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

Public Member Functions

void cleanup_gpu_resources () override
 
void create_gpu_resources () override
 
 pointcloud_renderer ()
 
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
 
 ~pointcloud_renderer () override
 
- 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_rendering_object
 gpu_rendering_object ()
 
virtual ~gpu_rendering_object ()
 
- Public Member Functions inherited from librealsense::gl::matrix_container
const rs2::matrix4get_matrix (rs2_gl_matrix_type type) const
 
 matrix_container ()
 
void set_matrix (rs2_gl_matrix_type type, const rs2::matrix4 &val)
 
virtual ~matrix_container ()
 

Static Public Attributes

static const auto OPTION_FILLED = rs2_option(RS2_OPTION_COUNT + 1)
 
static const auto OPTION_MOUSE_PICK = rs2_option(RS2_OPTION_COUNT + 5)
 
static const auto OPTION_MOUSE_X = rs2_option(RS2_OPTION_COUNT + 3)
 
static const auto OPTION_MOUSE_Y = rs2_option(RS2_OPTION_COUNT + 4)
 
static const auto OPTION_NORMAL_X = rs2_option(RS2_OPTION_COUNT + 12)
 
static const auto OPTION_NORMAL_Y = rs2_option(RS2_OPTION_COUNT + 13)
 
static const auto OPTION_NORMAL_Z = rs2_option(RS2_OPTION_COUNT + 14)
 
static const auto OPTION_ORIGIN_PICKED = rs2_option(RS2_OPTION_COUNT + 11)
 
static const auto OPTION_PICKED_ID = rs2_option(RS2_OPTION_COUNT + 9)
 
static const auto OPTION_PICKED_X = rs2_option(RS2_OPTION_COUNT + 6)
 
static const auto OPTION_PICKED_Y = rs2_option(RS2_OPTION_COUNT + 7)
 
static const auto OPTION_PICKED_Z = rs2_option(RS2_OPTION_COUNT + 8)
 
static const auto OPTION_SCALE_FACTOR = rs2_option(RS2_OPTION_COUNT + 15)
 
static const auto OPTION_SELECTED = rs2_option(RS2_OPTION_COUNT + 10)
 
static const auto OPTION_SHADED = rs2_option(RS2_OPTION_COUNT + 2)
 

Private Attributes

std::deque< std::chrono::high_resolution_clock::time_point > _durations
 
std::shared_ptr< rs2::fbo_fbo
 
option_filled_opt
 
int _height = 0
 
std::shared_ptr< rs2::vao_model
 
option_mouse_pick_opt
 
option_mouse_x_opt
 
option_mouse_y_opt
 
option_normal_x_opt
 
option_normal_y_opt
 
option_normal_z_opt
 
option_origin_picked_opt
 
pbo< rgba8_origin_rgba_pbo
 
std::shared_ptr< pointcloud_shader_pick_shader
 
option_picked_id_opt
 
option_picked_x_opt
 
option_picked_y_opt
 
option_picked_z_opt
 
pbo< rgba8_rgba_pbo
 
option_scale_factor_opt
 
option_selected_opt
 
option_shaded_opt
 
std::shared_ptr< pointcloud_shader_shader
 
std::shared_ptr< rs2::texture_buffer_uvs_texture
 
std::shared_ptr< rs2::texture_buffer_vertex_texture
 
std::shared_ptr< rs2::texture_visualizer_viz
 
int _width = 0
 
pbo< half4_xyz_pbo
 
uint32_t color_tex
 
uint32_t xyz_tex
 

Additional Inherited Members

- 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_rendering_object
void initialize ()
 
template<class T >
void perform_gl_action (T action)
 
- 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::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 59 of file pc-shader.h.

Constructor & Destructor Documentation

librealsense::gl::pointcloud_renderer::pointcloud_renderer ( )

Definition at line 395 of file pc-shader.cpp.

librealsense::gl::pointcloud_renderer::~pointcloud_renderer ( )
override

Definition at line 360 of file pc-shader.cpp.

Member Function Documentation

void librealsense::gl::pointcloud_renderer::cleanup_gpu_resources ( )
overridevirtual

Implements librealsense::gl::gpu_object.

Definition at line 342 of file pc-shader.cpp.

void librealsense::gl::pointcloud_renderer::create_gpu_resources ( )
overridevirtual

Implements librealsense::gl::gpu_object.

Definition at line 368 of file pc-shader.cpp.

rs2::frame librealsense::gl::pointcloud_renderer::process_frame ( const rs2::frame_source source,
const rs2::frame f 
)
overridevirtual

Implements librealsense::generic_processing_block.

Definition at line 437 of file pc-shader.cpp.

Member Data Documentation

std::deque<std::chrono::high_resolution_clock::time_point> librealsense::gl::pointcloud_renderer::_durations
private

Definition at line 114 of file pc-shader.h.

std::shared_ptr<rs2::fbo> librealsense::gl::pointcloud_renderer::_fbo
private

Definition at line 101 of file pc-shader.h.

option* librealsense::gl::pointcloud_renderer::_filled_opt
private

Definition at line 104 of file pc-shader.h.

int librealsense::gl::pointcloud_renderer::_height = 0
private

Definition at line 103 of file pc-shader.h.

std::shared_ptr<rs2::vao> librealsense::gl::pointcloud_renderer::_model
private

Definition at line 97 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_mouse_pick_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_mouse_x_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_mouse_y_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_normal_x_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_normal_y_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_normal_z_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_origin_picked_opt
private

Definition at line 104 of file pc-shader.h.

pbo<rgba8> librealsense::gl::pointcloud_renderer::_origin_rgba_pbo
private

Definition at line 113 of file pc-shader.h.

std::shared_ptr<pointcloud_shader> librealsense::gl::pointcloud_renderer::_pick_shader
private

Definition at line 96 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_picked_id_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_picked_x_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_picked_y_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_picked_z_opt
private

Definition at line 104 of file pc-shader.h.

pbo<rgba8> librealsense::gl::pointcloud_renderer::_rgba_pbo
private

Definition at line 112 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_scale_factor_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_selected_opt
private

Definition at line 104 of file pc-shader.h.

option * librealsense::gl::pointcloud_renderer::_shaded_opt
private

Definition at line 104 of file pc-shader.h.

std::shared_ptr<pointcloud_shader> librealsense::gl::pointcloud_renderer::_shader
private

Definition at line 95 of file pc-shader.h.

std::shared_ptr<rs2::texture_buffer> librealsense::gl::pointcloud_renderer::_uvs_texture
private

Definition at line 99 of file pc-shader.h.

std::shared_ptr<rs2::texture_buffer> librealsense::gl::pointcloud_renderer::_vertex_texture
private

Definition at line 98 of file pc-shader.h.

std::shared_ptr<rs2::texture_visualizer> librealsense::gl::pointcloud_renderer::_viz
private

Definition at line 100 of file pc-shader.h.

int librealsense::gl::pointcloud_renderer::_width = 0
private

Definition at line 102 of file pc-shader.h.

pbo<half4> librealsense::gl::pointcloud_renderer::_xyz_pbo
private

Definition at line 111 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_renderer::color_tex
private

Definition at line 108 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_FILLED = rs2_option(RS2_OPTION_COUNT + 1)
static

Definition at line 67 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_MOUSE_PICK = rs2_option(RS2_OPTION_COUNT + 5)
static

Definition at line 72 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_MOUSE_X = rs2_option(RS2_OPTION_COUNT + 3)
static

Definition at line 70 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_MOUSE_Y = rs2_option(RS2_OPTION_COUNT + 4)
static

Definition at line 71 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_NORMAL_X = rs2_option(RS2_OPTION_COUNT + 12)
static

Definition at line 83 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_NORMAL_Y = rs2_option(RS2_OPTION_COUNT + 13)
static

Definition at line 84 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_NORMAL_Z = rs2_option(RS2_OPTION_COUNT + 14)
static

Definition at line 85 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_ORIGIN_PICKED = rs2_option(RS2_OPTION_COUNT + 11)
static

Definition at line 81 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_PICKED_ID = rs2_option(RS2_OPTION_COUNT + 9)
static

Definition at line 78 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_PICKED_X = rs2_option(RS2_OPTION_COUNT + 6)
static

Definition at line 74 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_PICKED_Y = rs2_option(RS2_OPTION_COUNT + 7)
static

Definition at line 75 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_PICKED_Z = rs2_option(RS2_OPTION_COUNT + 8)
static

Definition at line 76 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_SCALE_FACTOR = rs2_option(RS2_OPTION_COUNT + 15)
static

Definition at line 87 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_SELECTED = rs2_option(RS2_OPTION_COUNT + 10)
static

Definition at line 80 of file pc-shader.h.

const auto librealsense::gl::pointcloud_renderer::OPTION_SHADED = rs2_option(RS2_OPTION_COUNT + 2)
static

Definition at line 68 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_renderer::xyz_tex
private

Definition at line 109 of file pc-shader.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