#include <MouseToTracker.H>
Public Member Functions | |
MouseToTracker (ProjectionVRCameraRef camera, int numTrackers=1) | |
virtual | ~MouseToTracker () |
void | doUserInput (const Array< EventRef > &events, Array< EventRef > &generatedEvents) |
Protected Types | |
enum | FsaStates { START, XROT, YROT, ZROT, DOLLY } |
Protected Member Functions | |
std::string | intToString (int i) |
void | cycleTracker () |
EventRef | mouseMoveInPlane (EventRef e) |
EventRef | mouseMoveInOut (EventRef e) |
EventRef | mouseMoveRotX (EventRef e) |
EventRef | mouseMoveRotY (EventRef e) |
EventRef | mouseMoveRotZ (EventRef e) |
Protected Attributes | |
ProjectionVRCameraRef | _camera |
FsaStates | _fsaState |
Matrix3 | _rot |
Vector3 | _trans |
Vector2 | _lastPos |
int | _numTrackers |
int | _curTracker |
enum VRG3D::MouseToTracker::FsaStates [protected] |
VRG3D::MouseToTracker::MouseToTracker | ( | ProjectionVRCameraRef | camera, | |
int | numTrackers = 1 | |||
) |
virtual VRG3D::MouseToTracker::~MouseToTracker | ( | ) | [virtual] |
void VRG3D::MouseToTracker::doUserInput | ( | const Array< EventRef > & | events, | |
Array< EventRef > & | generatedEvents | |||
) |
Call this method each frame to respond to input events that should include Mouse_Pointer events and kbd events. It returns an array of tracker events generated based on the input.
std::string VRG3D::MouseToTracker::intToString | ( | int | i | ) | [protected] |
void VRG3D::MouseToTracker::cycleTracker | ( | ) | [protected] |
ProjectionVRCameraRef VRG3D::MouseToTracker::_camera [protected] |
FsaStates VRG3D::MouseToTracker::_fsaState [protected] |
Matrix3 VRG3D::MouseToTracker::_rot [protected] |
Vector3 VRG3D::MouseToTracker::_trans [protected] |
Vector2 VRG3D::MouseToTracker::_lastPos [protected] |
int VRG3D::MouseToTracker::_numTrackers [protected] |
int VRG3D::MouseToTracker::_curTracker [protected] |