diff Framework/Scene2DViewport/OneGesturePointerTracker.h @ 722:28b9e3a54200

Undo mechanism implemented (not connected to UI yet). Undo stack and measuring tools are now handled by the ViewportController. Multi-touch does not crash trackers anymore.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 21 May 2019 10:27:54 +0200
parents 059e1fd05fd6
children e42b491f1fb2
line wrap: on
line diff
--- a/Framework/Scene2DViewport/OneGesturePointerTracker.h	Mon May 20 12:49:29 2019 +0200
+++ b/Framework/Scene2DViewport/OneGesturePointerTracker.h	Tue May 21 10:27:54 2019 +0200
@@ -26,14 +26,15 @@
 {
   /**
   This base is class allows to write simple trackers that deal with single 
-  drag gestures. It is *not* suitables for multi-state trackers where various
-  mouse operations need to be handled.
+  drag gestures with only one touch. It is *not* suitable for multi-touch and
+  multi-state trackers where various mouse operations need to be handled.
 
   In order to write such a tracker:
   - subclass this class
   - you may store the initial click/touch position in the constructor
   - implement PointerMove to react to pointer/touch events
   - implement Cancel to restore the state at initial tracker creation time
+
   */
   class OneGesturePointerTracker : public IFlexiblePointerTracker
   {
@@ -49,6 +50,7 @@
   private:
     ViewportControllerWPtr controllerW_;
     bool                   alive_;
+    int                    currentTouchCount_;
   };
 }