Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/GrayscaleWindowingSceneTracker.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 |
---|---|
44 | 44 |
45 void SetWindowing(float center, | 45 void SetWindowing(float center, |
46 float width); | 46 float width); |
47 | 47 |
48 public: | 48 public: |
49 GrayscaleWindowingSceneTracker(boost::shared_ptr<IViewport> viewport, | 49 GrayscaleWindowingSceneTracker(boost::weak_ptr<IViewport> viewport, |
50 int layerIndex, | 50 int layerIndex, |
51 const PointerEvent& event, | 51 const PointerEvent& event, |
52 unsigned int canvasWidth, | 52 unsigned int canvasWidth, |
53 unsigned int canvasHeight); | 53 unsigned int canvasHeight); |
54 | 54 |