comparison OrthancStone/Sources/Scene2DViewport/LineMeasureTool.h @ 1791:9b650ab68d4c

replaced unneeded use of boost::share_ptr for MeasureCommand mementos by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 May 2021 16:11:17 +0200
parents 9ac2a65d4172
children 3889ae96d2e9
comparison
equal deleted inserted replaced
1790:b325761e0bd3 1791:9b650ab68d4c
50 50
51 virtual bool HitTest(ScenePoint2D p) ORTHANC_OVERRIDE; 51 virtual bool HitTest(ScenePoint2D p) ORTHANC_OVERRIDE;
52 virtual void Highlight(ScenePoint2D p) ORTHANC_OVERRIDE; 52 virtual void Highlight(ScenePoint2D p) ORTHANC_OVERRIDE;
53 virtual void ResetHighlightState() ORTHANC_OVERRIDE; 53 virtual void ResetHighlightState() ORTHANC_OVERRIDE;
54 virtual boost::shared_ptr<IFlexiblePointerTracker> CreateEditionTracker(const PointerEvent& e) ORTHANC_OVERRIDE; 54 virtual boost::shared_ptr<IFlexiblePointerTracker> CreateEditionTracker(const PointerEvent& e) ORTHANC_OVERRIDE;
55 virtual boost::shared_ptr<MeasureToolMemento> GetMemento() const ORTHANC_OVERRIDE; 55 virtual MeasureToolMemento* CreateMemento() const ORTHANC_OVERRIDE;
56 virtual void SetMemento(boost::shared_ptr<MeasureToolMemento>) ORTHANC_OVERRIDE; 56 virtual void SetMemento(const MeasureToolMemento& memento) ORTHANC_OVERRIDE;
57 virtual std::string GetDescription() ORTHANC_OVERRIDE; 57 virtual std::string GetDescription() ORTHANC_OVERRIDE;
58 58
59 enum LineHighlightArea 59 enum LineHighlightArea
60 { 60 {
61 LineHighlightArea_None, 61 LineHighlightArea_None,