motionTrackingEvent.h

Go to the documentation of this file.
00001 #ifndef MOTIONTRACKINGEVENT_H
00002 #define MOTIONTRACKINGEVENT_H
00003 
00004 #include <QtCore/QEvent>
00005 
00006 #include <BALL/VIEW/INPUT/deviceEvent.h>
00007 #include <BALL/MATHS/vector3.h>
00008 #include <BALL/MATHS/quaternion.h>
00009 
00010 namespace BALL
00011 {
00012   namespace VIEW
00013   {
00014     class MotionTrackingEvent : public DeviceEvent
00015     {
00016       public:
00017         MotionTrackingEvent(InputDeviceDriver* dev, double x, double y, double z, 
00018                                                     double q1, double q2, double q3, double q4);
00019 
00020         const Vector3& getOrigin() { return origin_; }
00021         const Quaternion& getTransform() { return transform_; }
00022       private:
00023         Vector3 origin_;
00024         Quaternion transform_;
00025     };
00026   }
00027 }
00028 
00029 #endif //MOTIONTRACKINGEVENT_H
00030