Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/ZoomSceneTracker.h @ 1606:874e178f34e9
- ViewportController now has weak ptr to Viewport
- Measuring tools + related commands and all trackers now store only a weak_ptr to the Viewport and lock() on demand for usage
- LayerHolder and FixedPoint aligner store only a weak_ptr to the Viewport, too
- Fixed float/double warning in GrayscaleWindowingSceneTracker
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 28 Oct 2020 20:14:34 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1605:b3c439d96d3e | 1606:874e178f34e9 |
---|---|
32 namespace OrthancStone | 32 namespace OrthancStone |
33 { | 33 { |
34 class ZoomSceneTracker : public OneGesturePointerTracker | 34 class ZoomSceneTracker : public OneGesturePointerTracker |
35 { | 35 { |
36 public: | 36 public: |
37 ZoomSceneTracker(boost::shared_ptr<IViewport> viewport, | 37 ZoomSceneTracker(boost::weak_ptr<IViewport> viewport, |
38 const PointerEvent& event, | 38 const PointerEvent& event, |
39 unsigned int canvasHeight); | 39 unsigned int canvasHeight); |
40 | 40 |
41 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; | 41 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; |
42 virtual void Cancel() ORTHANC_OVERRIDE; | 42 virtual void Cancel() ORTHANC_OVERRIDE; |