pyrs_options.cpp
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2 Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
3 
4 #include "python.hpp"
5 #include "../include/librealsense2/hpp/rs_options.hpp"
6 
7 void init_options(py::module &m) {
9  py::class_<rs2::options> options(m, "options", "Base class for options interface. Should be used via sensor or processing_block."); // No docstring in C++
10  options.def("is_option_read_only", &rs2::options::is_option_read_only, "Check if particular option "
11  "is read only.", "option"_a)
12  .def("get_option", &rs2::options::get_option, "Read option value from the device.", "option"_a)
13  .def("get_option_range", &rs2::options::get_option_range, "Retrieve the available range of values "
14  "of a supported option", "option"_a)
15  .def("set_option", &rs2::options::set_option, "Write new value to device option", "option"_a, "value"_a)
16  .def("supports", (bool (rs2::options::*)(rs2_option option) const) &rs2::options::supports, "Check if particular "
17  "option is supported by a subdevice", "option"_a)
18  .def("get_option_description", &rs2::options::get_option_description, "Get option description.", "option"_a)
19  .def("get_option_value_description", &rs2::options::get_option_value_description, "Get option value description "
20  "(In case a specific option value holds special meaning)", "option"_a, "value"_a)
21  .def("get_supported_options", &rs2::options::get_supported_options, "Retrieve list of supported options"); // No docstring in C++
23 }
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
const GLfloat * m
Definition: glext.h:6814
std::vector< rs2_option > get_supported_options()
Definition: rs_options.hpp:119
Definition: getopt.h:41
const char * get_option_description(rs2_option option) const
Definition: rs_options.hpp:32
bool is_option_read_only(rs2_option option) const
Definition: rs_options.hpp:111
bool supports(rs2_option option) const
Definition: rs_options.hpp:19
option_range get_option_range(rs2_option option) const
Definition: rs_options.hpp:84
void set_option(rs2_option option, float value) const
Definition: rs_options.hpp:99
float get_option(rs2_option option) const
Definition: rs_options.hpp:72
const char * get_option_value_description(rs2_option option, float val) const
Definition: rs_options.hpp:59
void init_options(py::module &m)
Definition: pyrs_options.cpp:7


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