Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/RotateSceneTracker.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
27 | 27 |
28 namespace OrthancStone | 28 namespace OrthancStone |
29 { | 29 { |
30 class RotateSceneTracker : public OneGesturePointerTracker | 30 class RotateSceneTracker : public OneGesturePointerTracker |
31 { | 31 { |
32 public: | |
33 RotateSceneTracker(boost::shared_ptr<IViewport> viewport, | |
34 const PointerEvent& event); | |
35 | |
36 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; | |
37 virtual void Cancel() ORTHANC_OVERRIDE; | |
38 | |
39 private: | 32 private: |
40 ScenePoint2D click_; | 33 ScenePoint2D click_; |
41 Internals::FixedPointAligner aligner_; | 34 Internals::FixedPointAligner aligner_; |
42 double referenceAngle_; | 35 double referenceAngle_; |
43 bool isFirst_; | 36 bool isFirst_; |
44 AffineTransform2D originalSceneToCanvas_; | 37 AffineTransform2D originalSceneToCanvas_; |
38 | |
39 public: | |
40 RotateSceneTracker(boost::shared_ptr<IViewport> viewport, | |
41 const PointerEvent& event); | |
42 | |
43 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; | |
44 | |
45 virtual void Cancel() ORTHANC_OVERRIDE; | |
45 }; | 46 }; |
46 } | 47 } |