OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
opencover::Input Class Reference

The Input class. More...

#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
 
void update ()
 
bool isTrackingOn () const
 
bool hasHead () const
 
bool isHeadValid () const
 
bool hasHand (int num=0) const
 
bool isHandValid (int num=0) const
 
size_t getNumPersons () const
 
size_t getNumBodies () const
 
size_t getNumDevices () const
 
size_t getActivePerson () const
 
bool setActivePerson (size_t numPerson)
 
PersongetPerson (const std::string &name)
 
PersongetPerson (size_t idx)
 
size_t getNumObjects () const
 
const osg::Matrix & getHeadMat () const
 
const osg::Matrix & getHandMat (int num=0) const
 
unsigned int getButtonState (int num=0) const
 
double getValuatorValue (size_t idx) const
 
float eyeDistance () const
 
DriverFactoryBasegetDriverPlugin (const std::string &name)
 
InputDevicegetDevice (const std::string &name)
 
InputDevicegetDevice (size_t idx)
 
TrackingBodygetBody (const std::string &name)
 
TrackingBodygetBody (size_t idx)
 
ButtonDevicegetButtons (const std::string &name)
 
ValuatorgetValuator (const std::string &name)
 
coMousePointermouse () const
 

Static Public Member Functions

static Inputinstance ()
 
static bool debug (DebugBits kind)
 

Detailed Description

The Input class.

An interface class for input devices

Member Enumeration Documentation

Enumerator
Config 
Mouse 
Driver 
Raw 
Transformed 
Matrices 
Buttons 
Valuators 

Constructor & Destructor Documentation

opencover::Input::~Input ( )

Member Function Documentation

static bool opencover::Input::debug ( DebugBits  kind)
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
size_t opencover::Input::getNumObjects ( ) const
inline
size_t opencover::Input::getNumPersons ( ) const
Person* opencover::Input::getPerson ( const std::string &  name)
Person* opencover::Input::getPerson ( size_t  idx)
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::init ( )
static Input* opencover::Input::instance ( )
static
bool opencover::Input::isHandValid ( int  num = 0) const
bool opencover::Input::isHeadValid ( ) const
bool opencover::Input::isTrackingOn ( ) const
coMousePointer* opencover::Input::mouse ( ) const
void opencover::Input::printConfig ( ) const
bool opencover::Input::setActivePerson ( size_t  numPerson)
void opencover::Input::setDebug ( int  debugFlags)
void opencover::Input::update ( )

The documentation for this class was generated from the following file: