Blender V2.61 - r43446
|
#include <GHOST_NDOFManager.h>
Public Member Functions | |
GHOST_NDOFManager (GHOST_System &) | |
virtual | ~GHOST_NDOFManager () |
virtual bool | available ()=0 |
bool | setDevice (unsigned short vendor_id, unsigned short product_id) |
void | setDeadZone (float) |
void | updateTranslation (short t[3], GHOST_TUns64 time) |
void | updateRotation (short r[3], GHOST_TUns64 time) |
void | updateButton (int button_number, bool press, GHOST_TUns64 time) |
void | updateButtons (int button_bits, GHOST_TUns64 time) |
bool | sendMotionEvent () |
Protected Attributes | |
GHOST_System & | m_system |
Definition at line 92 of file GHOST_NDOFManager.h.
GHOST_NDOFManager::GHOST_NDOFManager | ( | GHOST_System & | sys | ) |
Definition at line 166 of file GHOST_NDOFManager.cpp.
virtual GHOST_NDOFManager::~GHOST_NDOFManager | ( | ) | [inline, virtual] |
Definition at line 97 of file GHOST_NDOFManager.h.
virtual bool GHOST_NDOFManager::available | ( | ) | [pure virtual] |
bool GHOST_NDOFManager::sendMotionEvent | ( | ) |
Definition at line 393 of file GHOST_NDOFManager.cpp.
References GHOST_TEventNDOFMotionData::dt, GHOST_WindowManager::getActiveWindow(), GHOST_System::getWindowManager(), GHOST_kFinished, GHOST_kFinishing, GHOST_kInProgress, GHOST_kNotStarted, GHOST_kStarting, m_system, nearHomePosition(), NULL, GHOST_TEventNDOFMotionData::progress, GHOST_System::pushEvent(), GHOST_TEventNDOFMotionData::rx, GHOST_TEventNDOFMotionData::ry, GHOST_TEventNDOFMotionData::rz, GHOST_TEventNDOFMotionData::tx, GHOST_TEventNDOFMotionData::ty, and GHOST_TEventNDOFMotionData::tz.
void GHOST_NDOFManager::setDeadZone | ( | float | dz | ) |
Definition at line 359 of file GHOST_NDOFManager.cpp.
References GHOST_PRINTF.
bool GHOST_NDOFManager::setDevice | ( | unsigned short | vendor_id, |
unsigned short | product_id | ||
) |
Definition at line 184 of file GHOST_NDOFManager.cpp.
References NDOF_SpaceExplorer, NDOF_SpaceNavigator, NDOF_SpacePilot, NDOF_SpacePilotPro, and NDOF_UnknownDevice.
void GHOST_NDOFManager::updateButton | ( | int | button_number, |
bool | press, | ||
GHOST_TUns64 | time | ||
) |
Definition at line 289 of file GHOST_NDOFManager.cpp.
References GHOST_WindowManager::getActiveWindow(), GHOST_System::getWindowManager(), GHOST_kKeyEsc, GHOST_kKeyLeftAlt, GHOST_kKeyLeftControl, GHOST_kKeyLeftShift, m_system, NDOF_SpaceExplorer, NDOF_SpaceNavigator, NDOF_SpacePilot, NDOF_SpacePilotPro, NDOF_UnknownDevice, SpaceExplorer_HID_map, SpaceNavigator_HID_map, SpacePilot_HID_map, and SpacePilotPro_HID_map.
Referenced by updateButtons().
void GHOST_NDOFManager::updateButtons | ( | int | button_bits, |
GHOST_TUns64 | time | ||
) |
Definition at line 343 of file GHOST_NDOFManager.cpp.
References KDL::diff(), and updateButton().
void GHOST_NDOFManager::updateRotation | ( | short | r[3], |
GHOST_TUns64 | time | ||
) |
Definition at line 255 of file GHOST_NDOFManager.cpp.
void GHOST_NDOFManager::updateTranslation | ( | short | t[3], |
GHOST_TUns64 | time | ||
) |
Definition at line 248 of file GHOST_NDOFManager.cpp.
GHOST_System& GHOST_NDOFManager::m_system [protected] |
Definition at line 136 of file GHOST_NDOFManager.h.
Referenced by sendMotionEvent(), and updateButton().