From fdbe45450aed82fe9589dd2bee65fec77dc01afb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 6 Aug 2016 10:35:25 +0200 Subject: api/plugins: add center hook for accumulative trackers This is necessary for the Tobii tracker --- opentrack/plugin-api.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentrack/plugin-api.hpp b/opentrack/plugin-api.hpp index 6cd76a16..09b7f9ee 100644 --- a/opentrack/plugin-api.hpp +++ b/opentrack/plugin-api.hpp @@ -156,6 +156,9 @@ struct OPENTRACK_API_EXPORT ITracker virtual void start_tracker(QFrame* frame) = 0; // return XYZ yaw pitch roll data. don't block here, use a separate thread for computation. virtual void data(double *data) = 0; + // tracker notified of centering + // returning true makes identity the center pose + virtual bool center() { return false; } }; struct OPENTRACK_API_EXPORT ITrackerDialog : public plugin_api::detail::BaseDialog -- cgit v1.2.3