summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_freepie-udp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-19 13:39:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-19 13:39:50 +0200
commita8ffbb76f3e3bbca547fccf5135323e06cae9d2a (patch)
treecd77a5302cb4ead5995a2a86d5b5b6324ebf43ff /ftnoir_tracker_freepie-udp
parent0f0d663c6263a59e2cb14f555a00b39b19c134e7 (diff)
update modules to refactored API
Diffstat (limited to 'ftnoir_tracker_freepie-udp')
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp4
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h16
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp_dll.cpp20
3 files changed, 9 insertions, 31 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
index ad505229..0870e67d 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -73,13 +73,13 @@ void TrackerImpl::run() {
}
}
-void TrackerImpl::StartTracker(QFrame*)
+void TrackerImpl::start_tracker(QFrame*)
{
(void) sock.bind(QHostAddress::Any, (int) s.port, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
start();
}
-void TrackerImpl::GetHeadPoseData(double *data)
+void TrackerImpl::data(double *data)
{
QMutexLocker foo(&mtx);
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
index de32e64b..92d42319 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
@@ -27,8 +27,8 @@ class TrackerImpl : public ITracker, private QThread
public:
TrackerImpl();
~TrackerImpl() override;
- void StartTracker(QFrame *);
- void GetHeadPoseData(double *data);
+ void start_tracker(QFrame *);
+ void data(double *data);
protected:
void run() override;
private:
@@ -39,13 +39,13 @@ private:
volatile bool should_quit;
};
-class TrackerDialog : public QWidget, public ITrackerDialog
+class TrackerDialog : public ITrackerDialog
{
Q_OBJECT
public:
TrackerDialog();
- void registerTracker(ITracker *) {}
- void unRegisterTracker() {}
+ void register_tracker(ITracker *) {}
+ void unregister_tracker() {}
private:
Ui::UI_freepie_udp_dialog ui;
settings s;
@@ -57,9 +57,7 @@ private slots:
class TrackerMeta : public Metadata
{
public:
- void getFullName(QString *strToBeFilled);
- void getShortName(QString *strToBeFilled);
- void getDescription(QString *strToBeFilled);
- void getIcon(QIcon *icon);
+ QString name() { return QString("FreePIE UDP receiver"); }
+ QIcon icon() { return QIcon(":/glovepie.png"); }
};
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp_dll.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp_dll.cpp
index afcc8c6e..3c7fce9a 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp_dll.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp_dll.cpp
@@ -1,26 +1,6 @@
#include "ftnoir_tracker_freepie-udp.h"
#include "facetracknoir/plugin-support.h"
-void TrackerMeta::getFullName(QString *strToBeFilled)
-{
- *strToBeFilled = "FreePIE UDP";
-}
-
-void TrackerMeta::getShortName(QString *strToBeFilled)
-{
- *strToBeFilled = "FreePIE";
-}
-
-void TrackerMeta::getDescription(QString *strToBeFilled)
-{
- *strToBeFilled = "FreePIE UDP";
-}
-
-void TrackerMeta::getIcon(QIcon *icon)
-{
- *icon = QIcon(":/glovepie.png");
-}
-
extern "C" OPENTRACK_EXPORT Metadata* GetMetadata()
{
return new TrackerMeta;