Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2DViewport/EditAngleMeasureCommand.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 |
---|---|
28 { | 28 { |
29 public: | 29 public: |
30 /** Ctor sets end of side 1*/ | 30 /** Ctor sets end of side 1*/ |
31 EditAngleMeasureCommand( | 31 EditAngleMeasureCommand( |
32 boost::shared_ptr<MeasureTool> measureTool, | 32 boost::shared_ptr<MeasureTool> measureTool, |
33 boost::shared_ptr<IViewport> viewport); | 33 boost::weak_ptr<IViewport> viewport); |
34 | 34 |
35 /** This method sets center*/ | 35 /** This method sets center*/ |
36 void SetCenter(ScenePoint2D scenePos); | 36 void SetCenter(ScenePoint2D scenePos); |
37 | 37 |
38 /** This method sets end of side 1*/ | 38 /** This method sets end of side 1*/ |