comparison OrthancStone/Sources/Scene2DViewport/EditLineMeasureTracker.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
42 In turn, a container for these commands to store the actual measuring 42 In turn, a container for these commands to store the actual measuring
43 must be supplied, too 43 must be supplied, too
44 */ 44 */
45 EditLineMeasureTracker( 45 EditLineMeasureTracker(
46 boost::shared_ptr<MeasureTool> measureTool, 46 boost::shared_ptr<MeasureTool> measureTool,
47 boost::shared_ptr<IViewport> viewport, 47 boost::weak_ptr<IViewport> viewport,
48 const PointerEvent& e); 48 const PointerEvent& e);
49 49
50 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE; 50 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE;
51 51
52 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE; 52 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE;