Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2DViewport/EditLineMeasureTracker.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 8563ea5d8ae4 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
26 { | 26 { |
27 class EditLineMeasureCommand; | 27 class EditLineMeasureCommand; |
28 | 28 |
29 class EditLineMeasureTracker : public EditMeasureTracker | 29 class EditLineMeasureTracker : public EditMeasureTracker |
30 { | 30 { |
31 private: | |
32 LineMeasureTool::LineHighlightArea modifiedZone_; | |
33 | |
34 boost::shared_ptr<EditLineMeasureCommand> GetCommand(); | |
35 | |
31 public: | 36 public: |
32 /** | 37 /** |
33 When you create this tracker, you need to supply it with the undo stack | 38 When you create this tracker, you need to supply it with the undo stack |
34 where it will store the commands that perform the actual measure tool | 39 where it will store the commands that perform the actual measure tool |
35 creation and modification. | 40 creation and modification. |
36 In turn, a container for these commands to store the actual measuring | 41 In turn, a container for these commands to store the actual measuring |
37 must be supplied, too | 42 must be supplied, too |
38 */ | 43 */ |
39 EditLineMeasureTracker( | 44 EditLineMeasureTracker( |
40 boost::shared_ptr<MeasureTool> measureTool, | 45 boost::shared_ptr<MeasureTool> measureTool, |
41 boost::shared_ptr<IViewport> viewport, | 46 boost::shared_ptr<IViewport> viewport, |
42 const PointerEvent& e); | 47 const PointerEvent& e); |
43 | |
44 ~EditLineMeasureTracker(); | |
45 | 48 |
46 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE; | 49 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE; |
50 | |
47 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE; | 51 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE; |
52 | |
48 virtual void PointerDown(const PointerEvent& e) ORTHANC_OVERRIDE; | 53 virtual void PointerDown(const PointerEvent& e) ORTHANC_OVERRIDE; |
49 | |
50 private: | |
51 LineMeasureTool::LineHighlightArea modifiedZone_; | |
52 | |
53 boost::shared_ptr<EditLineMeasureCommand> GetCommand(); | |
54 }; | 54 }; |
55 } | 55 } |