Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2DViewport/OneGesturePointerTracker.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | e731e62692a9 |
children | 8563ea5d8ae4 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
43 - implement Cancel to restore the state at initial tracker creation time | 43 - implement Cancel to restore the state at initial tracker creation time |
44 | 44 |
45 */ | 45 */ |
46 class OneGesturePointerTracker : public IFlexiblePointerTracker | 46 class OneGesturePointerTracker : public IFlexiblePointerTracker |
47 { | 47 { |
48 public: | 48 private: |
49 OneGesturePointerTracker(boost::shared_ptr<IViewport> viewport); | 49 bool alive_; |
50 virtual void PointerUp(const PointerEvent& event) ORTHANC_OVERRIDE; | 50 int currentTouchCount_; |
51 virtual void PointerDown(const PointerEvent& event) ORTHANC_OVERRIDE; | 51 |
52 virtual bool IsAlive() const ORTHANC_OVERRIDE; | |
53 | |
54 protected: | 52 protected: |
55 boost::shared_ptr<IViewport> viewport_; | 53 boost::shared_ptr<IViewport> viewport_; |
56 | 54 |
57 private: | 55 public: |
58 bool alive_; | 56 explicit OneGesturePointerTracker(boost::shared_ptr<IViewport> viewport); |
59 int currentTouchCount_; | 57 |
58 virtual void PointerUp(const PointerEvent& event) ORTHANC_OVERRIDE; | |
59 | |
60 virtual void PointerDown(const PointerEvent& event) ORTHANC_OVERRIDE; | |
61 | |
62 virtual bool IsAlive() const ORTHANC_OVERRIDE; | |
60 }; | 63 }; |
61 } | 64 } |
62 | 65 |