|
RealSense Cross Platform API
RealSense Cross-platform API
|
#include <rs_options.hpp>
Protected Member Functions | |
| options (rs2_options *o=nullptr) | |
| template<class T> | |
| options & | operator= (const T &dev) |
|
inline |
|
virtualdefault |
|
inlineexplicitprotected |
|
inline |
read a composite option's current raw payload, atomically, in ONE UVC transaction
| [in] | id | composite option id to read |
|
inline |
typed counterpart to get_composite_option() - casts the raw payload directly into T. Validates sizeof(T) matches, and for structs with a composed dpp_header, that its version is DPP_HEADER_CURRENT_VERSION (see rs_dpp_header.h), unpopulated (0) included.
| [in] | id | composite option id to read |
|
inline |
get a composite option's human-readable description
| [in] | id | composite option id to describe |
|
inline |
read a composite option's supported {min,max,step,def} bounds
| [in] | id | composite option id to read |
|
inline |
typed counterpart to get_composite_option_range() - casts the raw {min,max,step,def} payload into TRange. Validates sizeof(TRange); the wrapper itself has no version field, but each of its four bounds does, each checked the same way as check_version_supported().
| [in] | id | composite option id to read |
|
inline |
read option's float value
| [in] | option | option id to be queried |
|
inline |
get option description
| [in] | option | option id to be checked |
|
inline |
get option name
| [in] | option | option id to be checked |
|
inline |
retrieve the available range of values of a supported option
|
inline |
read option's value
| [in] | option_id | option id to be queried |
|
inline |
get option value description (in case specific option value hold special meaning)
| [in] | option | option id to be checked |
| [in] | val | value of the option |
|
inline |
|
inline |
|
inline |
|
inline |
check if a composite option is read-only
| [in] | id | composite option id to be checked |
|
inline |
check if particular option is read-only
| [in] | option | option id to be checked |
|
inline |
sets a callback in case an option in this options container value is updated
| [in] | callback | the callback function |
|
inlineprotected |
|
inline |
See rs_composite_option.h for the underlying C API and atomicity contract (one UVC transaction per call) - these methods just forward to the corresponding rs2_* function. write new value to a composite option, atomically, in ONE UVC transaction
| [in] | id | composite option id to write |
| [in] | data | pointer to the caller's struct matching the option's documented wire layout |
| [in] | size | sizeof(...) of the caller's struct |
|
inline |
typed counterpart to set_composite_option() - sends value itself. For structs carrying a header.version field, rejects a value whose version isn't current - most likely a get-modify-set that left the header zero-initialized.
| [in] | id | composite option id to write |
| [in] | value | the caller's struct matching the option's documented wire layout |
|
inline |
write new value to the option
| [in] | option | option id to be queried |
| [in] | value | new value for the option |
|
inline |
write new value to the option
| [in] | option | option id to be queried |
| [in] | value | option (id,type,is_valid,new value) |
|
inline |
check if particular option is supported
| [in] | option | option id to be checked |
|
inline |
check if particular composite option is supported (and currently enabled)
| [in] | id | composite option id to be checked |