OpenCOVER
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
opencover::Input Class Reference

The Input class. More...

#include <input.h>

Collaboration diagram for opencover::Input:
Collaboration graph
[legend]

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 hasMouse () 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)
 
PersongetPerson (const std::string &name)
 
PersongetPerson (size_t idx)
 
size_t getNumObjects () const
 
const osg::Matrix & getMouseMat () 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
 
DriverFactoryBasegetDriverPlugin (const std::string &name)
 
void addDevice (const std::string &name, InputDevice *dev)
 
void removeDevice (const std::string &name, InputDevice *dev)
 
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)
 

Public Attributes

deviceDiscoverydD
 

Detailed Description

The Input class.

An interface class for input devices

Member Enumeration Documentation

◆ DebugBits

Enumerator
Config 
Mouse 
Driver 
Raw 
Transformed 
Matrices 
Buttons 
Valuators 

Constructor & Destructor Documentation

◆ ~Input()

opencover::Input::~Input ( )

Member Function Documentation

◆ addDevice()

void opencover::Input::addDevice ( const std::string &  name,
InputDevice dev 
)

◆ debug()

static bool opencover::Input::debug ( DebugBits  kind)
static

◆ eyeDistance()

float opencover::Input::eyeDistance ( ) const

◆ getActivePerson()

size_t opencover::Input::getActivePerson ( ) const

◆ getBody() [1/2]

TrackingBody * opencover::Input::getBody ( const std::string &  name)

◆ getBody() [2/2]

TrackingBody * opencover::Input::getBody ( size_t  idx)

◆ getButtons()

ButtonDevice * opencover::Input::getButtons ( const std::string &  name)

◆ getButtonState()

unsigned int opencover::Input::getButtonState ( int  num = 0) const

◆ getDebug()

int opencover::Input::getDebug ( )

◆ getDevice() [1/2]

InputDevice * opencover::Input::getDevice ( const std::string &  name)

◆ getDevice() [2/2]

InputDevice * opencover::Input::getDevice ( size_t  idx)

◆ getDriverPlugin()

DriverFactoryBase * opencover::Input::getDriverPlugin ( const std::string &  name)

◆ getHandMat()

const osg::Matrix & opencover::Input::getHandMat ( int  num = 0) const

◆ getHeadMat()

const osg::Matrix & opencover::Input::getHeadMat ( ) const

◆ getMouseMat()

const osg::Matrix & opencover::Input::getMouseMat ( ) const

◆ getNumBodies()

size_t opencover::Input::getNumBodies ( ) const

◆ getNumDevices()

size_t opencover::Input::getNumDevices ( ) const

◆ getNumObjects()

size_t opencover::Input::getNumObjects ( ) const
inline

◆ getNumPersons()

size_t opencover::Input::getNumPersons ( ) const

◆ getPerson() [1/2]

Person * opencover::Input::getPerson ( const std::string &  name)

◆ getPerson() [2/2]

Person * opencover::Input::getPerson ( size_t  idx)

◆ getRelativeButtonState()

unsigned int opencover::Input::getRelativeButtonState ( int  num = 0) const

◆ getRelativeMat()

const osg::Matrix & opencover::Input::getRelativeMat ( ) const

◆ getValuator()

Valuator * opencover::Input::getValuator ( const std::string &  name)

◆ getValuatorValue()

double opencover::Input::getValuatorValue ( size_t  idx) const

◆ hasHand()

bool opencover::Input::hasHand ( int  num = 0) const

◆ hasHead()

bool opencover::Input::hasHead ( ) const

◆ hasMouse()

bool opencover::Input::hasMouse ( ) const

◆ hasRelative()

bool opencover::Input::hasRelative ( ) const

◆ init()

bool opencover::Input::init ( )

◆ instance()

static Input * opencover::Input::instance ( )
static

◆ isHandValid()

bool opencover::Input::isHandValid ( int  num = 0) const

◆ isHeadValid()

bool opencover::Input::isHeadValid ( ) const

◆ isRelativeValid()

bool opencover::Input::isRelativeValid ( ) const

◆ isTrackingOn()

bool opencover::Input::isTrackingOn ( ) const

◆ mouse()

coMousePointer * opencover::Input::mouse ( ) const

◆ printConfig()

void opencover::Input::printConfig ( ) const

◆ removeDevice()

void opencover::Input::removeDevice ( const std::string &  name,
InputDevice dev 
)

◆ setActivePerson()

bool opencover::Input::setActivePerson ( size_t  numPerson)

◆ setDebug()

void opencover::Input::setDebug ( int  debugFlags)

◆ update()

bool opencover::Input::update ( )

Member Data Documentation

◆ dD

deviceDiscovery* opencover::Input::dD

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