Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/OneGesturePointerTracker.h @ 818:e42b491f1fb2
Removed typedefs to shared_ptr by making them explicit. Removed using namespace
directives to make usage more explicit, too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 10:51:28 +0200 |
parents | 28b9e3a54200 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
817:68f888812af4 | 818:e42b491f1fb2 |
---|---|
37 | 37 |
38 */ | 38 */ |
39 class OneGesturePointerTracker : public IFlexiblePointerTracker | 39 class OneGesturePointerTracker : public IFlexiblePointerTracker |
40 { | 40 { |
41 public: | 41 public: |
42 OneGesturePointerTracker(ViewportControllerWPtr controllerW); | 42 OneGesturePointerTracker(boost::weak_ptr<ViewportController> controllerW); |
43 virtual void PointerUp(const PointerEvent& event) ORTHANC_OVERRIDE; | 43 virtual void PointerUp(const PointerEvent& event) ORTHANC_OVERRIDE; |
44 virtual void PointerDown(const PointerEvent& event) ORTHANC_OVERRIDE; | 44 virtual void PointerDown(const PointerEvent& event) ORTHANC_OVERRIDE; |
45 virtual bool IsAlive() const ORTHANC_OVERRIDE; | 45 virtual bool IsAlive() const ORTHANC_OVERRIDE; |
46 | 46 |
47 protected: | 47 protected: |
48 ViewportControllerPtr GetController(); | 48 boost::shared_ptr<ViewportController> GetController(); |
49 | 49 |
50 private: | 50 private: |
51 ViewportControllerWPtr controllerW_; | 51 boost::weak_ptr<ViewportController> controllerW_; |
52 bool alive_; | 52 bool alive_; |
53 int currentTouchCount_; | 53 int currentTouchCount_; |
54 }; | 54 }; |
55 } | 55 } |
56 | 56 |