Loading...
Searching...
No Matches
headTrackingEvent.h
Go to the documentation of this file.
#ifndef HEADTRACKINGEVENT_H
#define HEADTRACKINGEVENT_H
#include <QtCore/QEvent>
#include <BALL/VIEW/INPUT/deviceEvent.h>
#include <BALL/MATHS/vector3.h>
#include <BALL/MATHS/quaternion.h>
namespace BALL
{
namespace VIEW
{
class HeadTrackingEvent : public DeviceEvent
{
public:
HeadTrackingEvent(InputDeviceDriver* dev, double x, double y, double z,
double q1, double q2, double q3, double q4);
const Vector3& getOrigin() { return origin_; }
const Quaternion& getTransform() { return transform_; }
private:
Vector3 origin_;
Quaternion transform_;
};
}
}
#endif //HEADTRACKINGEVENT_H
BALL::VIEW::DeviceEvent::DeviceEvent
DeviceEvent(EventsIDs type, InputDeviceDriver *device)
BALL::VIEW::HeadTrackingEvent::HeadTrackingEvent
HeadTrackingEvent(InputDeviceDriver *dev, double x, double y, double z, double q1, double q2, double q3, double q4)
BALL::VIEW::HeadTrackingEvent::getOrigin
const Vector3 & getOrigin()
Definition headTrackingEvent.h:20
BALL::VIEW::HeadTrackingEvent::getTransform
const Quaternion & getTransform()
Definition headTrackingEvent.h:21
BALL::VIEW::InputDeviceDriver
Definition inputDeviceDriver.h:19
deviceEvent.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
BALL::Quaternion
TQuaternion< float > Quaternion
Definition quaternion.h:626
quaternion.h
vector3.h