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 /FaceTrackNoIR/tracker.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 'FaceTrackNoIR/tracker.h')
-rw-r--r-- | FaceTrackNoIR/tracker.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h index b9a39eba..fa0c5111 100644 --- a/FaceTrackNoIR/tracker.h +++ b/FaceTrackNoIR/tracker.h @@ -76,11 +76,11 @@ enum FTNoIR_Client { MOUSE = 7
};
-enum FTNoIR_Face_Tracker {
- FT_SM_FACEAPI = 0,
- FT_FTNOIR = 1,
- FT_VISAGE = 2
-};
+//enum FTNoIR_Face_Tracker {
+// FT_SM_FACEAPI = 0,
+// FT_FTNOIR = 1,
+// FT_VISAGE = 2
+//};
enum FTNoIR_Tracker_Status {
TRACKER_OFF = 0,
@@ -148,7 +148,7 @@ private: HANDLE m_WaitThread;
FTNoIR_Client selectedClient;
- FTNoIR_Face_Tracker selectedTracker;
+// FTNoIR_Face_Tracker selectedTracker;
static T6DOF current_camera; // Used for filtering
static T6DOF target_camera;
@@ -231,6 +231,11 @@ public: static void getHeadPose(THeadPoseData *data); // Return the current headpose data
static void getOutputHeadPose(THeadPoseData *data); // Return the current (processed) headpose data
static IFilterPtr getFilterPtr() { return pFilter; }
+ static void doRefreshVideo() { // Call the face-tracker-function RefreshVideo
+ if (pTracker) {
+ pTracker->refreshVideo();
+ }
+ };
static float getSmoothFromList ( QList<float> *rawList );
static float getDegreesFromRads ( float rads ) { return (rads * 57.295781f); }
|