blob: daadf27d9ad87644220f75ae6ae6f112134e224a (
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
51
52
53
54
55
56
57
58
59
60
61
62
|
#pragma once
#include "api/plugin-api.hpp"
#include "api/plugin-support.hpp"
#include "options/options.hpp"
using namespace options;
#include <memory>
#include <QObject>
#include <QFrame>
#include <QCoreApplication>
struct fusion_settings final : opts
{
value<QVariant> rot_tracker_name, pos_tracker_name;
fusion_settings();
};
class fusion_tracker : public QObject, public ITracker
{
Q_OBJECT
double rot_tracker_data[6] {}, pos_tracker_data[6] {};
std::unique_ptr<QFrame> other_frame { std::make_unique<QFrame>() };
std::shared_ptr<dylib> rot_dylib, pos_dylib;
std::shared_ptr<ITracker> rot_tracker, pos_tracker;
public:
fusion_tracker();
~fusion_tracker() override;
module_status start_tracker(QFrame*) override;
void data(double* data) override;
static const QString& caption();
};
#include "ui_fusion.h"
class fusion_dialog : public ITrackerDialog
{
Q_OBJECT
fusion_settings s;
Ui::fusion_ui ui;
public:
fusion_dialog();
private slots:
void doOK();
void doCancel();
};
class fusion_metadata : public Metadata
{
Q_OBJECT
QString name() { return tr("Fusion"); }
QIcon icon() { return QIcon(":/images/fusion-tracker-logo.png"); }
};
|