summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii/ftnoir_tracker_tobii.h
blob: bd7a04a238dd266cf3fff011cd8ff1284a1e498b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include "ui_ftnoir_tracker_tobii_controls.h"
#include <QComboBox>
#include <QCheckBox>
#include <QSpinBox>
#include <QMessageBox>
#include <QSettings>
#include <QList>
#include <QFrame>
#include <QStringList>
#include <cmath>
#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"); }
};