OpenCOVER
|
The InputDevice class interacts with input hardware. More...
#include <inputdevice.h>
Public Member Functions | |
InputDevice (const std::string &configPath) | |
virtual | ~InputDevice () |
std::string | configPath (const std::string &ent="") const |
virtual bool | poll () |
virtual void | run () |
virtual bool | needsThread () const |
void | stopLoop () |
bool | isValid () const |
bool | isVarying () const |
bool | is6Dof () const |
const std::string & | getName () const |
const osg::Matrix & | getOffsetMat () const |
void | setOffsetMat (const osg::Matrix &m) |
std::string & | getCalibrationPointName (int i) |
osg::Vec3 & | getCalibrationPoint (int i) |
Protected Member Functions | |
size_t | numButtons () const |
bool | getButtonState (size_t idx) const |
size_t | numValuators () const |
double | getValuatorValue (size_t idx) const |
std::pair< double, double > | getValuatorRange (size_t idx) const |
size_t | numBodies () const |
bool | isBodyMatrixValid (size_t idx) const |
bool | isBodyMatrixRelative (size_t idx) const |
const osg::Matrix & | getBodyMatrix (size_t idx) const |
virtual void | update () |
Protected Attributes | |
bool | loop_is_running |
OpenThreads::Mutex | m_mutex |
If true, the main loop will run. More... | |
const std::string | m_config |
std::string | m_name |
osg::Matrix | m_offsetMatrix |
bool | m_isVarying |
bool | m_is6Dof |
bool | m_valid |
std::vector< bool > | m_buttonStates |
std::vector< double > | m_valuatorValues |
std::vector< std::pair< double, double > > | m_valuatorRanges |
std::vector< bool > | m_bodyMatricesValid |
std::vector< bool > | m_bodyMatricesRelative |
std::vector< osg::Matrix > | m_bodyMatrices |
osg::Vec3 | m_calibrationPoints [3] |
std::string | m_calibrationPointNames [3] |
Static Protected Attributes | |
static osg::Matrix | s_identity |
Friends | |
class | Input |
class | ButtonDevice |
class | Valuator |
class | TrackingBody |
The InputDevice class interacts with input hardware.
This class interacts with input hardware and stores the data about all configured input hardware e.g. tracking systems, button devices etc.
Main interaction loop runs in its own thread
opencover::InputDevice::InputDevice | ( | const std::string & | configPath | ) |
|
virtual |
std::string opencover::InputDevice::configPath | ( | const std::string & | ent = "" | ) | const |
|
protected |
|
protected |
osg::Vec3 & opencover::InputDevice::getCalibrationPoint | ( | int | i | ) |
std::string & opencover::InputDevice::getCalibrationPointName | ( | int | i | ) |
const std::string & opencover::InputDevice::getName | ( | ) | const |
const osg::Matrix & opencover::InputDevice::getOffsetMat | ( | ) | const |
|
protected |
|
protected |
bool opencover::InputDevice::is6Dof | ( | ) | const |
|
protected |
|
protected |
bool opencover::InputDevice::isValid | ( | ) | const |
bool opencover::InputDevice::isVarying | ( | ) | const |
|
virtual |
Reimplemented in opencover::ConstInputDevice.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
virtual |
|
virtual |
void opencover::InputDevice::setOffsetMat | ( | const osg::Matrix & | m | ) |
void opencover::InputDevice::stopLoop | ( | ) |
|
protectedvirtual |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If true, the main loop will run.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |