diff OrthancStone/Sources/Scene2DViewport/IFlexiblePointerTracker.h @ 1972:9c0adcc8feec

refactoring to simplify OneGesturePointerTracker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 Oct 2022 16:21:28 +0200
parents 7053b8a0aaec
children 5a434f5889f8
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2DViewport/IFlexiblePointerTracker.h	Fri Oct 28 13:38:19 2022 +0200
+++ b/OrthancStone/Sources/Scene2DViewport/IFlexiblePointerTracker.h	Fri Oct 28 16:21:28 2022 +0200
@@ -45,13 +45,15 @@
     /**
     This method will be repeatedly called during user interaction
     */
-    virtual void PointerMove(const PointerEvent& event) = 0;
+    virtual void PointerMove(const PointerEvent& event,
+                             const Scene2D& scene) = 0;
 
     /**
     This method will be called when a touch/pointer is removed (mouse up, 
     pen lift, finger removed...)
     */
-    virtual void PointerUp(const PointerEvent& event) = 0;
+    virtual void PointerUp(const PointerEvent& event,
+                           const Scene2D& scene) = 0;
 
     /**
     This method will be called when a touch/pointer is added (mouse down, 
@@ -63,7 +65,8 @@
     Thus, if you count the PointerDown vs PointerUp, there will be an extra
     PointerUp.
     */
-    virtual void PointerDown(const PointerEvent& event) = 0;
+    virtual void PointerDown(const PointerEvent& event,
+                             const Scene2D& scene) = 0;
 
     /**
     This method will be repeatedly called by the tracker owner (for instance,