diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2012-03-17 16:15:51 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2012-03-17 16:15:51 +0000 |
commit | 9184ea73941814b95c2768d8bcca8bdb77655891 (patch) | |
tree | 9cf5977e95abb7e42a719730560c145c1b33c9ba /FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h | |
parent | 9ae8a2212d0c85cfa904ea3bf03c0631f6c1369a (diff) |
Changed Tracker code, so the DLL's are true plug-ins.
FaceTrackNoIR will scan the bin folder for FTNoIR_Tracker*.dll and put the names in the combobox.
All Trackers have 3 new member-functions (like the filters).
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@104 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h')
-rw-r--r-- | FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h index 51c22027..4cae5e62 100644 --- a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h +++ b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h @@ -7,11 +7,11 @@ #include "Windows.h"
#include "math.h"
-class FTNoIR_Tracker_UDP : public ITracker, QThread
+class FTNoIR_Tracker : public ITracker, QThread
{
public:
- FTNoIR_Tracker_UDP();
- ~FTNoIR_Tracker_UDP();
+ FTNoIR_Tracker();
+ ~FTNoIR_Tracker();
void Release();
void Initialize( QFrame *videoframe );
@@ -20,7 +20,9 @@ public: bool GiveHeadPoseData(THeadPoseData *data);
void loadSettings();
- bool setParameterValue(const int index, const float newvalue);
+ void getFullName(QString *strToBeFilled);
+ void getShortName(QString *strToBeFilled);
+ void getDescription(QString *strToBeFilled);
protected:
void run(); // qthread override run method
@@ -40,30 +42,39 @@ private: THeadPoseData newHeadPose; // Structure with new headpose
- //parameter list for the filter-function(s)
- enum
- {
- kPortAddress=0, // Index in QList
- kNumFilterParameters // Indicate number of parameters used
- };
- QList<std::pair<float,float>> parameterRange;
- QList<float> parameterValueAsFloat;
-
+ ////parameter list for the filter-function(s)
+ //enum
+ //{
+ // kPortAddress=0, // Index in QList
+ // kNumFilterParameters // Indicate number of parameters used
+ //};
+ //QList<std::pair<float,float>> parameterRange;
+ //QList<float> parameterValueAsFloat;
+
+ float portAddress; // Port-number
+ QString trackerFullName; // Trackers' name and description
+ QString trackerShortName;
+ QString trackerDescription;
};
// Widget that has controls for FTNoIR protocol client-settings.
-class FTNClientControls: public QWidget, Ui::UICFTNClientControls, public ITrackerDialog
+class TrackerControls: public QWidget, Ui::UICFTNClientControls, public ITrackerDialog
{
Q_OBJECT
public:
- explicit FTNClientControls();
- virtual ~FTNClientControls();
+ explicit TrackerControls();
+ virtual ~TrackerControls();
void showEvent ( QShowEvent * event );
void Release(); // Member functions which are accessible from outside the DLL
void Initialize(QWidget *parent);
+ void getFullName(QString *strToBeFilled);
+ void getShortName(QString *strToBeFilled);
+ void getDescription(QString *strToBeFilled);
+ void getIcon(QIcon *icon);
+
private:
Ui::UICFTNClientControls ui;
void loadSettings();
@@ -72,6 +83,10 @@ private: /** helper **/
bool settingsDirty;
+ QString trackerFullName; // Trackers' name and description
+ QString trackerShortName;
+ QString trackerDescription;
+
private slots:
void doOK();
void doCancel();
|