blob: 500b28f4be99527fabd5524d543ae9044186a558 (
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
|
#pragma once
#include "ui_test.h"
#include "opentrack/plugin-api.hpp"
#include "opentrack-compat/timer.hpp"
class FTNoIR_Tracker : public ITracker
{
public:
FTNoIR_Tracker();
~FTNoIR_Tracker() override;
void start_tracker(QFrame *) override;
void data(double *data) override;
private:
static constexpr double pi = 3.14159265358979323846;
static constexpr double r2d = 180 / pi;
static constexpr double d2r = pi / 180;
static const double incr[6];
double last_x[6];
Timer t;
};
class TrackerControls: public ITrackerDialog
{
Q_OBJECT
Ui::test_ui ui;
public:
TrackerControls();
void register_tracker(ITracker *) override {}
void unregister_tracker() override {}
private slots:
void doOK();
void doCancel();
};
class FTNoIR_TrackerDll : public Metadata
{
public:
QString name() { return QString("Testing - sine wave"); }
QIcon icon() { return QIcon(":/images/facetracknoir.png"); }
};
|