GlutSensorEmulatorDevice Class Reference
#include <GlutSensorEmulatorDevice.h>
Inherits InputDeviceBase.

Public Member Functions | |
| GlutSensorEmulatorDevice (unsigned int numSensors, unsigned int switchSensorButton, unsigned int switchTransformationTargetButton, unsigned int switchAxesButton) | |
| virtual | ~GlutSensorEmulatorDevice () |
Static Public Member Functions | |
| static void | cbGlutKeyboard (unsigned char k, int x, int y) |
| static void | cbGlutMouse (int button, int state, int x, int y) |
| static void | cbGlutMouseMove (int x, int y) |
| static void | setWindowSize (int width, int height) |
| static void | setMouseGrabbing (bool on) |
Static Public Attributes | |
| static const unsigned int | DefaultSwitchSensorButton = 256 |
| Default button for switching between sensors (256 = LMB). | |
| static const unsigned int | DefaultSwitchTransformationTargetButton = 257 |
| Default button for switching between transformation targets (257 = MMB). | |
| static const unsigned int | DefaultSwitchAxesButton = 258 |
| Default button for switching between axes (258 = MMB). | |
| static const unsigned int | DefaultNumberOfSensors = 2 |
| Default number of sensors. | |
Private Member Functions | |
| void | handleButtonPress (unsigned int buttonIndex) |
| void | handleAxesChange (float deltaX, float deltaY) |
| void | changeTranslation (float x, float y) |
| void | changeOrientation (float x, float y) |
Private Attributes | |
| unsigned int | switchSensorButton |
| unsigned int | switchTransformationTargetButton |
| unsigned int | switchAxesButton |
| unsigned int | sensorIdx |
| bool | useYAxis |
| bool | useZRotation |
| bool | useOrientation |
Static Private Attributes | |
| static float | winWidth = -1 |
| static float | winHeight = -1 |
| static float | screenWidth = 0 |
| static float | screenHeight = 0 |
| static bool | grabMouse = true |
| static std::vector < GlutSensorEmulatorDevice * > | activeDevices |
Constructor & Destructor Documentation
| GlutSensorEmulatorDevice::GlutSensorEmulatorDevice | ( | unsigned int | numSensors, | |
| unsigned int | switchSensorButton, | |||
| unsigned int | switchTransformationTargetButton, | |||
| unsigned int | switchAxesButton | |||
| ) |
Constructor
| GlutSensorEmulatorDevice::~GlutSensorEmulatorDevice | ( | ) | [virtual] |
Destructor
Member Function Documentation
| void GlutSensorEmulatorDevice::cbGlutKeyboard | ( | unsigned char | k, | |
| int | x, | |||
| int | y | |||
| ) | [static] |
Static GLUT callback when key is pressed
| void GlutSensorEmulatorDevice::cbGlutMouse | ( | int | button, | |
| int | state, | |||
| int | x, | |||
| int | y | |||
| ) | [static] |
Static GLUT callback for mouse button click (or release)
| void GlutSensorEmulatorDevice::cbGlutMouseMove | ( | int | x, | |
| int | y | |||
| ) | [static] |
Static GLUT callback for mouse motion
| void GlutSensorEmulatorDevice::changeOrientation | ( | float | x, | |
| float | y | |||
| ) | [private] |
Changes the orientation of the current sensor
| void GlutSensorEmulatorDevice::changeTranslation | ( | float | x, | |
| float | y | |||
| ) | [private] |
Changes the translation of the current sensor
| void GlutSensorEmulatorDevice::handleAxesChange | ( | float | deltaX, | |
| float | deltaY | |||
| ) | [private] |
Handles the changes of the mouse axes
| void GlutSensorEmulatorDevice::handleButtonPress | ( | unsigned int | buttonIndex | ) | [private] |
Handles a pressed button (either keyboard or mouse)
| void GlutSensorEmulatorDevice::setMouseGrabbing | ( | bool | on | ) | [static] |
Defines wether the mouse is grabbed in the window or not. If the mouse is grabbed it won't be visible and will be fixed inside the window. By deactivating mouse grabbing the mouse gets visible again and can be moved freely again.
| void GlutSensorEmulatorDevice::setWindowSize | ( | int | width, | |
| int | height | |||
| ) | [static] |
Static GLUT callback for resizing the window size
Member Data Documentation
std::vector< GlutSensorEmulatorDevice * > GlutSensorEmulatorDevice::activeDevices [static, private] |
const unsigned int GlutSensorEmulatorDevice::DefaultNumberOfSensors = 2 [static] |
Default number of sensors.
const unsigned int GlutSensorEmulatorDevice::DefaultSwitchAxesButton = 258 [static] |
Default button for switching between axes (258 = MMB).
const unsigned int GlutSensorEmulatorDevice::DefaultSwitchSensorButton = 256 [static] |
Default button for switching between sensors (256 = LMB).
const unsigned int GlutSensorEmulatorDevice::DefaultSwitchTransformationTargetButton = 257 [static] |
Default button for switching between transformation targets (257 = MMB).
bool GlutSensorEmulatorDevice::grabMouse = true [static, private] |
float GlutSensorEmulatorDevice::screenHeight = 0 [static, private] |
float GlutSensorEmulatorDevice::screenWidth = 0 [static, private] |
unsigned int GlutSensorEmulatorDevice::sensorIdx [private] |
unsigned int GlutSensorEmulatorDevice::switchAxesButton [private] |
unsigned int GlutSensorEmulatorDevice::switchSensorButton [private] |
unsigned int GlutSensorEmulatorDevice::switchTransformationTargetButton [private] |
bool GlutSensorEmulatorDevice::useOrientation [private] |
bool GlutSensorEmulatorDevice::useYAxis [private] |
bool GlutSensorEmulatorDevice::useZRotation [private] |
float GlutSensorEmulatorDevice::winHeight = -1 [static, private] |
float GlutSensorEmulatorDevice::winWidth = -1 [static, private] |
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerManager/GlutSensorEmulatorDevice.h
- src/inVRs/InputInterface/ControllerManager/GlutSensorEmulatorDevice.cpp
Generated on Wed Oct 20 16:11:56 2010 for inVRs by
1.5.8