Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/PanSceneTracker.h @ 821:5c7b08bf84af
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 May 2019 13:42:34 +0200 |
parents | e42b491f1fb2 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
820:270c31978df1 | 821:5c7b08bf84af |
---|---|
26 namespace OrthancStone | 26 namespace OrthancStone |
27 { | 27 { |
28 class PanSceneTracker : public OneGesturePointerTracker | 28 class PanSceneTracker : public OneGesturePointerTracker |
29 { | 29 { |
30 public: | 30 public: |
31 PanSceneTracker(ViewportControllerWPtr controllerW, | 31 PanSceneTracker(boost::weak_ptr<ViewportController> controllerW, |
32 const PointerEvent& event); | 32 const PointerEvent& event); |
33 | 33 |
34 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; | 34 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; |
35 virtual void Cancel() ORTHANC_OVERRIDE; | 35 virtual void Cancel() ORTHANC_OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 ViewportControllerWPtr controllerW_; | 38 boost::weak_ptr<ViewportController> controllerW_; |
39 ScenePoint2D pivot_; | 39 ScenePoint2D pivot_; |
40 AffineTransform2D originalSceneToCanvas_; | 40 AffineTransform2D originalSceneToCanvas_; |
41 AffineTransform2D originalCanvasToScene_; | 41 AffineTransform2D originalCanvasToScene_; |
42 }; | 42 }; |
43 } | 43 } |