OpenCOVER
|
#include <input.h>
Public Types | |
enum | DebugBits { Config = 1, Mouse = 2, Driver = 4, Raw = 8, Transformed = 16, Matrices = 32, Buttons = 64, Valuators = 128 } |
Public Member Functions | |
~Input () | |
bool | init () |
void | setDebug (int debugFlags) |
int | getDebug () |
void | printConfig () const |
bool | update () |
bool | isTrackingOn () const |
bool | hasHead () const |
bool | isHeadValid () const |
bool | hasHand (int num=0) const |
bool | isHandValid (int num=0) const |
bool | hasRelative () const |
bool | isRelativeValid () const |
size_t | getNumPersons () const |
size_t | getNumBodies () const |
size_t | getNumDevices () const |
size_t | getActivePerson () const |
bool | setActivePerson (size_t numPerson) |
Person * | getPerson (const std::string &name) |
Person * | getPerson (size_t idx) |
size_t | getNumObjects () const |
const osg::Matrix & | getHeadMat () const |
const osg::Matrix & | getRelativeMat () const |
const osg::Matrix & | getHandMat (int num=0) const |
unsigned int | getButtonState (int num=0) const |
unsigned int | getRelativeButtonState (int num=0) const |
double | getValuatorValue (size_t idx) const |
float | eyeDistance () const |
DriverFactoryBase * | getDriverPlugin (const std::string &name) |
void | addDevice (const std::string &name, InputDevice *dev) |
void | removeDevice (const std::string &name, InputDevice *dev) |
InputDevice * | getDevice (const std::string &name) |
InputDevice * | getDevice (size_t idx) |
TrackingBody * | getBody (const std::string &name) |
TrackingBody * | getBody (size_t idx) |
ButtonDevice * | getButtons (const std::string &name) |
Valuator * | getValuator (const std::string &name) |
coMousePointer * | mouse () const |
Static Public Member Functions | |
static Input * | instance () |
static bool | debug (DebugBits kind) |
The Input class.
An interface class for input devices
opencover::Input::~Input | ( | ) |
void opencover::Input::addDevice | ( | const std::string & | name, |
InputDevice * | dev | ||
) |
|
static |
float opencover::Input::eyeDistance | ( | ) | const |
size_t opencover::Input::getActivePerson | ( | ) | const |
TrackingBody* opencover::Input::getBody | ( | const std::string & | name | ) |
TrackingBody* opencover::Input::getBody | ( | size_t | idx | ) |
ButtonDevice* opencover::Input::getButtons | ( | const std::string & | name | ) |
unsigned int opencover::Input::getButtonState | ( | int | num = 0 | ) | const |
int opencover::Input::getDebug | ( | ) |
InputDevice* opencover::Input::getDevice | ( | const std::string & | name | ) |
InputDevice* opencover::Input::getDevice | ( | size_t | idx | ) |
DriverFactoryBase* opencover::Input::getDriverPlugin | ( | const std::string & | name | ) |
const osg::Matrix& opencover::Input::getHandMat | ( | int | num = 0 | ) | const |
const osg::Matrix& opencover::Input::getHeadMat | ( | ) | const |
size_t opencover::Input::getNumBodies | ( | ) | const |
size_t opencover::Input::getNumDevices | ( | ) | const |
|
inline |
size_t opencover::Input::getNumPersons | ( | ) | const |
Person* opencover::Input::getPerson | ( | const std::string & | name | ) |
Person* opencover::Input::getPerson | ( | size_t | idx | ) |
unsigned int opencover::Input::getRelativeButtonState | ( | int | num = 0 | ) | const |
const osg::Matrix& opencover::Input::getRelativeMat | ( | ) | const |
Valuator* opencover::Input::getValuator | ( | const std::string & | name | ) |
double opencover::Input::getValuatorValue | ( | size_t | idx | ) | const |
bool opencover::Input::hasHand | ( | int | num = 0 | ) | const |
bool opencover::Input::hasHead | ( | ) | const |
bool opencover::Input::hasRelative | ( | ) | const |
bool opencover::Input::init | ( | ) |
|
static |
bool opencover::Input::isHandValid | ( | int | num = 0 | ) | const |
bool opencover::Input::isHeadValid | ( | ) | const |
bool opencover::Input::isRelativeValid | ( | ) | const |
bool opencover::Input::isTrackingOn | ( | ) | const |
coMousePointer* opencover::Input::mouse | ( | ) | const |
void opencover::Input::printConfig | ( | ) | const |
void opencover::Input::removeDevice | ( | const std::string & | name, |
InputDevice * | dev | ||
) |
bool opencover::Input::setActivePerson | ( | size_t | numPerson | ) |
void opencover::Input::setDebug | ( | int | debugFlags | ) |
bool opencover::Input::update | ( | ) |