summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/plugin-qt-api.hpp
blob: 1697d8e7d036f45446b34a389dd39124cb9122ce (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
63
64
65
66
67
68
#pragma once

#include <QString>
#include <QFrame>

struct Metadata
{
    Metadata() {}
    virtual ~Metadata() {}

    virtual void getFullName(QString *strToBeFilled) = 0;
    virtual void getShortName(QString *strToBeFilled) = 0;
    virtual void getDescription(QString *strToBeFilled) = 0;
    virtual void getIcon(QIcon *icon) = 0;
};

// XXX TODO get rid of QString/QFrame to fix ABI woes
// will lead plugins from different C++ runtimes working -sh 20141004

// XXX TODO make virtual public the mess -sh 20141004

struct IFilter
{
    virtual ~IFilter() = 0;
    virtual void FilterHeadPoseData(const double *target_camera_position, double *new_camera_position) = 0;
};
inline IFilter::~IFilter() {}

struct IFilterDialog
{
    virtual ~IFilterDialog() = 0;
    virtual void registerFilter(IFilter* tracker) = 0;
    virtual void unregisterFilter() = 0;
};
inline IFilterDialog::~IFilterDialog() {}

struct IProtocol
{
    virtual ~IProtocol() = 0;
    virtual bool checkServerInstallationOK() = 0;
    virtual void sendHeadposeToGame( const double* headpose ) = 0;
    virtual QString getGameName() = 0;
};
inline IProtocol::~IProtocol() {}

struct IProtocolDialog
{
    virtual ~IProtocolDialog() = 0;
    virtual void registerProtocol(IProtocol *protocol) = 0;
    virtual void unRegisterProtocol() = 0;
};
inline IProtocolDialog::~IProtocolDialog() {}

struct ITracker
{
    virtual ~ITracker() = 0;
    virtual void StartTracker( QFrame* frame ) = 0;
    virtual void GetHeadPoseData(double *data) = 0;
};
inline ITracker::~ITracker() {}

struct ITrackerDialog
{
    virtual ~ITrackerDialog() = 0;
    virtual void registerTracker(ITracker *tracker) = 0;
    virtual void unRegisterTracker() = 0;
};
inline ITrackerDialog::~ITrackerDialog() {}