#include <SVTK_SpaceMouse.h>
Data Structures | |
| struct | MoveEvent |
Public Types | |
| enum | MoveData { x, y, z, a, b, c } |
| enum | EventType { SpaceMouseMove = 1, SpaceButtonPress, SpaceButtonRelease } |
Public Member Functions | |
| bool | isSpaceMouseOn () const |
| int | initialize (Display *, Window) |
| int | setWindow (Display *, Window) |
| int | translateEvent (Display *, XEvent *, MoveEvent *, double, double) |
| int | close (Display *) |
Static Public Member Functions | |
| static SVTK_SpaceMouse * | getInstance () |
Private Member Functions | |
| SVTK_SpaceMouse () | |
Private Attributes | |
| Atom | XMotionEvent |
| Atom | XButtonPressEvent |
| Atom | XButtonReleaseEvent |
| Atom | XCommandEvent |
| Window | win |
| int | spaceMouseOn |
Static Private Attributes | |
| static SVTK_SpaceMouse * | myInstance = 0 |
| SVTK_SpaceMouse::SVTK_SpaceMouse | ( | ) | [private] |
Constructor
References spaceMouseOn, and win.
| SVTK_SpaceMouse * SVTK_SpaceMouse::getInstance | ( | ) | [static] |
References myInstance, and SVTK_SpaceMouse().
| bool SVTK_SpaceMouse.isSpaceMouseOn | ( | ) | const |
References spaceMouseOn.
| int SVTK_SpaceMouse::initialize | ( | Display * | display, |
| Window | window | ||
| ) |
Initialization
References setWindow(), spaceMouseOn, XButtonPressEvent, XButtonReleaseEvent, XCommandEvent, and XMotionEvent.
| int SVTK_SpaceMouse::setWindow | ( | Display * | display, |
| Window | window | ||
| ) |
Initialize by window
References errorCallback(), win, Window, and XCommandEvent.
| int SVTK_SpaceMouse::translateEvent | ( | Display * | display, |
| XEvent * | xEvent, | ||
| MoveEvent * | spaceMouseEvent, | ||
| double | scale, | ||
| double | rScale | ||
| ) |
Custom event handler
References a, b, SVTK_SpaceMouse.MoveEvent.button, c, SVTK_SpaceMouse.MoveEvent.data, SVTK_SpaceMouse.MoveEvent.period, SpaceButtonPress, SpaceButtonRelease, SpaceMouseMove, spaceMouseOn, SVTK_SpaceMouse.MoveEvent.type, x, XButtonPressEvent, XButtonReleaseEvent, XMotionEvent, y, and z.
| int SVTK_SpaceMouse::close | ( | Display * | display | ) |
Close
References initialize(), spaceMouseOn, and Window.
SVTK_SpaceMouse * SVTK_SpaceMouse::myInstance = 0 [static, private] |
Atom SVTK_SpaceMouse.XMotionEvent [private] |
Atom SVTK_SpaceMouse.XButtonPressEvent [private] |
Atom SVTK_SpaceMouse.XButtonReleaseEvent [private] |
Atom SVTK_SpaceMouse.XCommandEvent [private] |
Window SVTK_SpaceMouse.win [private] |
int SVTK_SpaceMouse.spaceMouseOn [private] |