Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1971:e5b31d55206d | 1972:9c0adcc8feec |
---|---|
43 virtual ~IFlexiblePointerTracker() {} | 43 virtual ~IFlexiblePointerTracker() {} |
44 | 44 |
45 /** | 45 /** |
46 This method will be repeatedly called during user interaction | 46 This method will be repeatedly called during user interaction |
47 */ | 47 */ |
48 virtual void PointerMove(const PointerEvent& event) = 0; | 48 virtual void PointerMove(const PointerEvent& event, |
49 const Scene2D& scene) = 0; | |
49 | 50 |
50 /** | 51 /** |
51 This method will be called when a touch/pointer is removed (mouse up, | 52 This method will be called when a touch/pointer is removed (mouse up, |
52 pen lift, finger removed...) | 53 pen lift, finger removed...) |
53 */ | 54 */ |
54 virtual void PointerUp(const PointerEvent& event) = 0; | 55 virtual void PointerUp(const PointerEvent& event, |
56 const Scene2D& scene) = 0; | |
55 | 57 |
56 /** | 58 /** |
57 This method will be called when a touch/pointer is added (mouse down, | 59 This method will be called when a touch/pointer is added (mouse down, |
58 pen or finger press) | 60 pen or finger press) |
59 | 61 |
61 tracker is NOT sent to the tracker. | 63 tracker is NOT sent to the tracker. |
62 | 64 |
63 Thus, if you count the PointerDown vs PointerUp, there will be an extra | 65 Thus, if you count the PointerDown vs PointerUp, there will be an extra |
64 PointerUp. | 66 PointerUp. |
65 */ | 67 */ |
66 virtual void PointerDown(const PointerEvent& event) = 0; | 68 virtual void PointerDown(const PointerEvent& event, |
69 const Scene2D& scene) = 0; | |
67 | 70 |
68 /** | 71 /** |
69 This method will be repeatedly called by the tracker owner (for instance, | 72 This method will be repeatedly called by the tracker owner (for instance, |
70 the application) to check whether the tracker must keep on receiving | 73 the application) to check whether the tracker must keep on receiving |
71 interaction or if its job is done and it should be deleted. | 74 interaction or if its job is done and it should be deleted. |