diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-06 10:35:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-07 21:03:42 +0200 |
commit | fdbe45450aed82fe9589dd2bee65fec77dc01afb (patch) | |
tree | 3d3313f07663ec2c4cc12f6a464fb35ecf7b9eb4 /opentrack/plugin-api.hpp | |
parent | f76be9a78c531a4a882bc2e37eb423ddecccff5b (diff) |
api/plugins: add center hook for accumulative trackers
This is necessary for the Tobii tracker
Diffstat (limited to 'opentrack/plugin-api.hpp')
-rw-r--r-- | opentrack/plugin-api.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |