summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-30 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-30 22:25:22 +0200
commit55e01c29728eb348183ecdfed764db293db849b1 (patch)
tree39f09c9b70846108045edd618a9655aa09ffb232
parent38dd4aa03776f99587e04c9a56ba76d4f5d28bd6 (diff)
Implement center notification
-rw-r--r--facetracknoir/tracker.cpp6
-rw-r--r--ftnoir_tracker_base/ftnoir_tracker_base.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 3f826f3f..03c521c6 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -159,6 +159,12 @@ void Tracker::run() {
// for kalman
if (Libraries->pFilter)
Libraries->pFilter->Initialize();
+
+ if (Libraries->pTracker)
+ Libraries->pTracker->NotifyCenter();
+
+ if (Libraries->pSecondTracker)
+ Libraries->pSecondTracker->NotifyCenter();
}
if (getTrackingActive()) {
diff --git a/ftnoir_tracker_base/ftnoir_tracker_base.h b/ftnoir_tracker_base/ftnoir_tracker_base.h
index b72be93e..182a364c 100644
--- a/ftnoir_tracker_base/ftnoir_tracker_base.h
+++ b/ftnoir_tracker_base/ftnoir_tracker_base.h
@@ -59,6 +59,8 @@ struct ITracker
virtual bool GiveHeadPoseData(double *data) = 0;
virtual void WaitForExit() = 0;
+
+ virtual void NotifyCenter() {}
};
typedef ITracker* ITrackerPtr;