OSVR-Core
|
The result of resolving a tree node to a device: either an original source to connect to, or nothing. More...
#include <OriginalSource.h>
Public Member Functions | |
OSVR_COMMON_EXPORT void | decompose (PathNode &node) |
Decompose a path node representing an original source into its device, interface, and sensor. More... | |
OSVR_COMMON_EXPORT bool | isResolved () const |
void | setDevice (PathNode &device) |
void | setInterface (PathNode &iface) |
void | setSensor (PathNode &sensor) |
void | nestTransform (Json::Value const &transform) |
PathNode * | getDevice () const |
OSVR_COMMON_EXPORT std::string | getDevicePath () const |
Gets the full path of the device node. | |
OSVR_COMMON_EXPORT elements::DeviceElement const & | getDeviceElement () const |
PathNode * | getInterface () const |
OSVR_COMMON_EXPORT std::string | getInterfaceName () const |
PathNode * | getSensor () const |
OSVR_COMMON_EXPORT boost::optional< int > | getSensorNumber () const |
OSVR_COMMON_EXPORT boost::optional< OSVR_ChannelCount > | getSensorNumberAsChannelCount () const |
OSVR_COMMON_EXPORT Json::Value | getTransformJson () const |
OSVR_COMMON_EXPORT bool | hasTransform () const |
The result of resolving a tree node to a device: either an original source to connect to, or nothing.
Typically wrapped in boost::optional for return from functions.
void osvr::common::OriginalSource::decompose | ( | PathNode & | node | ) |
Decompose a path node representing an original source into its device, interface, and sensor.