From 77885b4d65f49fd220d2426c01cd336402b86c60 Mon Sep 17 00:00:00 2001 From: Ballista Milsim Date: Thu, 23 Jan 2020 15:40:15 +0100 Subject: WIP Tobii Eye tracker support. --- tracker-tobii/ftnoir_tracker_tobii.h | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tracker-tobii/ftnoir_tracker_tobii.h (limited to 'tracker-tobii/ftnoir_tracker_tobii.h') diff --git a/tracker-tobii/ftnoir_tracker_tobii.h b/tracker-tobii/ftnoir_tracker_tobii.h new file mode 100644 index 00000000..bd7a04a2 --- /dev/null +++ b/tracker-tobii/ftnoir_tracker_tobii.h @@ -0,0 +1,50 @@ +#pragma once +#include "ui_ftnoir_tracker_tobii_controls.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "api/plugin-api.hpp" +#include "options/options.hpp" + +#include "thread.hpp" + +class tobii : public ITracker +{ +public: + ~tobii(); + module_status start_tracker(QFrame*) override; + void data(double* data) override; + virtual bool center() override; +private: + tobii_thread t; + tobii_head_pose_t center_pose; +}; + +class dialog_tobii: public ITrackerDialog +{ + Q_OBJECT +public: + dialog_tobii(); + ~dialog_tobii() = default; + void register_tracker(ITracker *) {} + void unregister_tracker() {} + Ui::UITobiiControls ui; + tobii* tracker; +private slots: + void doOK(); + void doCancel(); +}; + +class tobiiDll : public Metadata +{ + Q_OBJECT + + QString name() { return tr("Tobii input"); } + QIcon icon() { return QIcon(":/images/opentrack.png"); } +}; -- cgit v1.2.3