From b785bbaf8ce50e0e11bd08e8818a613b5add66ed Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Sun, 24 Oct 2010 14:30:55 +0000 Subject: Axis inhibitor shortkey added. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@26 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/tracker.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'FaceTrackNoIR/tracker.h') diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h index 8b7b13f1..277c11ca 100644 --- a/FaceTrackNoIR/tracker.h +++ b/FaceTrackNoIR/tracker.h @@ -97,6 +97,12 @@ struct TShortKey { bool shift; // Modifiers to examine bool ctrl; bool alt; + bool doPitch; // Modifiers to act on axis + bool doYaw; + bool doRoll; + bool doX; + bool doY; + bool doZ; }; class Tracker : public QThread { @@ -132,12 +138,14 @@ private: static TShortKey CenterKey; // ShortKey to Center headposition static TShortKey StartStopKey; // ShortKey to Start/stop tracking + static TShortKey InhibitKey; // ShortKey to one or more axis during tracking // Flags to start/stop/reset tracking static bool confid; // Tracker data is OK static bool set_initial; // initial headpose is set - static bool do_tracking; // Start/stop tracking, using MINUS key on keyboard - static bool do_center; // Center head-position, using EQUALS key on keyboard + static bool do_tracking; // Start/stop tracking, using the shortkey + static bool do_center; // Center head-position, using the shortkey + static bool do_inhibit; // Inhibit DOF-axis, using the shortkey static bool useFilter; static long prevHeadPoseTime; // Time from previous sample -- cgit v1.2.3