4#ifndef LIBREALSENSE_RS2_OPTIONS_HPP
5#define LIBREALSENSE_RS2_OPTIONS_HPP
121 std::vector<rs2_option> res;
123 std::shared_ptr<rs2_options_list> options_list(
136 _options = other._options;
static void handle(rs2_error *e)
Definition: rs_types.hpp:144
Definition: rs_options.hpp:12
virtual ~options()=default
float get_option(rs2_option option) const
Definition: rs_options.hpp:72
const char * get_option_description(rs2_option option) const
Definition: rs_options.hpp:32
option_range get_option_range(rs2_option option) const
Definition: rs_options.hpp:84
std::vector< rs2_option > get_supported_options()
Definition: rs_options.hpp:119
const char * get_option_value_description(rs2_option option, float val) const
Definition: rs_options.hpp:59
options & operator=(const T &dev)
Definition: rs_options.hpp:149
options & operator=(const options &other)
Definition: rs_options.hpp:134
options(const options &other)
Definition: rs_options.hpp:140
void set_option(rs2_option option, float value) const
Definition: rs_options.hpp:99
const char * get_option_name(rs2_option option) const
Definition: rs_options.hpp:45
bool is_option_read_only(rs2_option option) const
Definition: rs_options.hpp:111
options(rs2_options *o=nullptr)
Definition: rs_options.hpp:144
bool supports(rs2_option option) const
Definition: rs_options.hpp:19
Definition: rs_processing_gl.hpp:13
const char * rs2_get_option_name(const rs2_options *options, rs2_option option, rs2_error **error)
void rs2_set_option(const rs2_options *options, rs2_option option, float value, rs2_error **error)
int rs2_get_options_list_size(const rs2_options_list *options, rs2_error **error)
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition: rs_option.h:23
rs2_options_list * rs2_get_options_list(const rs2_options *options, rs2_error **error)
rs2_option rs2_get_option_from_list(const rs2_options_list *options, int i, rs2_error **error)
void rs2_delete_options_list(rs2_options_list *list)
int rs2_is_option_read_only(const rs2_options *options, rs2_option option, rs2_error **error)
void rs2_get_option_range(const rs2_options *sensor, rs2_option option, float *min, float *max, float *step, float *def, rs2_error **error)
const char * rs2_get_option_value_description(const rs2_options *options, rs2_option option, float value, rs2_error **error)
const char * rs2_get_option_description(const rs2_options *options, rs2_option option, rs2_error **error)
float rs2_get_option(const rs2_options *options, rs2_option option, rs2_error **error)
int rs2_supports_option(const rs2_options *options, rs2_option option, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:259
struct rs2_options rs2_options
Definition: rs_types.h:284
Definition: rs_types.hpp:177
float def
Definition: rs_types.hpp:180
float step
Definition: rs_types.hpp:181
float max
Definition: rs_types.hpp:179
float min
Definition: rs_types.hpp:178