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

#include <ds5-options.h>

Inheritance diagram for librealsense::depth_scale_option:
Inheritance graph
[legend]

Public Member Functions

 depth_scale_option (hw_monitor &hwm)
 
void enable_recording (std::function< void(const option &)> record_action) override
 
const char * get_description () const override
 
virtual option_range get_range () const override
 
virtual bool is_enabled () const override
 
virtual float query () const override
 
virtual void set (float value) override
 
virtual ~depth_scale_option ()=default
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual const char * get_value_description (float) const
 
virtual bool is_read_only () const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::observable_option
void add_observer (std::function< void(float)> callback)
 
void notify (float val)
 

Private Member Functions

ds::depth_table_control get_depth_table (ds::advanced_query_mode mode) const
 

Private Attributes

hw_monitor_hwm
 
lazy< option_range_range
 
std::function< void(const option &)> _record_action = [](const option&) {}
 

Detailed Description

Definition at line 163 of file ds5-options.h.

Constructor & Destructor Documentation

librealsense::depth_scale_option::depth_scale_option ( hw_monitor hwm)

Definition at line 337 of file ds5-options.cpp.

virtual librealsense::depth_scale_option::~depth_scale_option ( )
virtualdefault

Member Function Documentation

void librealsense::depth_scale_option::enable_recording ( std::function< void(const option &)>  recording_function)
inlineoverridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< option >.

Definition at line 177 of file ds5-options.h.

ds::depth_table_control librealsense::depth_scale_option::get_depth_table ( ds::advanced_query_mode  mode) const
private

Definition at line 323 of file ds5-options.cpp.

const char* librealsense::depth_scale_option::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 173 of file ds5-options.h.

option_range librealsense::depth_scale_option::get_range ( ) const
overridevirtual

Implements librealsense::option.

Definition at line 371 of file ds5-options.cpp.

virtual bool librealsense::depth_scale_option::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 171 of file ds5-options.h.

float librealsense::depth_scale_option::query ( void  ) const
overridevirtual

Implements librealsense::option.

Definition at line 365 of file ds5-options.cpp.

void librealsense::depth_scale_option::set ( float  value)
overridevirtual

Implements librealsense::option.

Definition at line 350 of file ds5-options.cpp.

Member Data Documentation

hw_monitor& librealsense::depth_scale_option::_hwm
private

Definition at line 186 of file ds5-options.h.

lazy<option_range> librealsense::depth_scale_option::_range
private

Definition at line 185 of file ds5-options.h.

std::function<void(const option &)> librealsense::depth_scale_option::_record_action = [](const option&) {}
private

Definition at line 184 of file ds5-options.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:37