#include <option.h>
Public Member Functions | |
void | enable_recording (std::function< void(const option &)> record_action) override |
const char * | get_description () const override |
const char * | get_value_description (float val) const override |
bool | is_enabled () const override |
void | on_set (std::function< void(float)> on_set) |
ptr_option (T min, T max, T step, T def, T *value, const std::string &desc) | |
ptr_option (T min, T max, T step, T def, T *value, const std::string &desc, const std::map< float, std::string > &description_per_value) | |
float | query () const override |
void | set (float value) override |
void | set_description (float val, const std::string &desc) |
Public Member Functions inherited from librealsense::option_base | |
option_range | get_range () const override |
bool | is_valid (float value) const |
option_base (const option_range &opt_range) | |
Public Member Functions inherited from librealsense::option | |
virtual void | create_snapshot (std::shared_ptr< option > &snapshot) const |
virtual bool | is_read_only () const |
virtual | ~option ()=default |
Public Member Functions inherited from librealsense::recordable< option > | |
virtual | ~recordable ()=default |
Private Attributes | |
T | _def |
std::string | _desc |
std::map< float, std::string > | _item_desc |
T | _max |
T | _min |
std::function< void(float)> | _on_set |
T | _step |
T * | _value |
Additional Inherited Members | |
Protected Attributes inherited from librealsense::option_base | |
const option_range | _opt_range |
std::function< void(const option &)> | _recording_function = [](const option&) {} |
|
inline |
|
inline |
|
inlineoverridevirtual |
Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves
Reimplemented from librealsense::option_base.
|
inlineoverridevirtual |
Implements librealsense::option.
|
inlineoverridevirtual |
Reimplemented from librealsense::option.
|
inlineoverridevirtual |
Implements librealsense::option.
|
inline |
|
inlineoverridevirtual |
Implements librealsense::option.
|
inlineoverridevirtual |
Implements librealsense::option.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |