Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/LineMeasureTool.cpp @ 1020:ac88989817e3 toa2019093001
TrackerCommand --> MeasureCommand + fuse against exception in MeasureTool dtor
+ added DeleteMeasureCommand + moved the various concrete measuring tool-related
classes to their pre-assigned file locations (everything was crammed into
MeasureCommands.* files up to this commit) + added double-click handler to
GuiAdapter (for TOA implementation of "delete measuring tool on double-click")
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 30 Sep 2019 10:41:06 +0200 |
parents | 52b1c6ff10c5 |
children | f6be9412e42a |
comparison
equal
deleted
inserted
replaced
1019:29f5f2031310 | 1020:ac88989817e3 |
---|---|
85 lineHighlightArea_ = area; | 85 lineHighlightArea_ = area; |
86 RefreshScene(); | 86 RefreshScene(); |
87 } | 87 } |
88 } | 88 } |
89 | 89 |
90 std::string LineMeasureTool::GetDescription() | |
91 { | |
92 std::stringstream ss; | |
93 ss << "LineMeasureTool. Start = " << start_ << " End = " << end_; | |
94 return ss.str(); | |
95 } | |
96 | |
90 void LineMeasureTool::ResetHighlightState() | 97 void LineMeasureTool::ResetHighlightState() |
91 { | 98 { |
92 SetLineHighlightArea(LineHighlightArea_None); | 99 SetLineHighlightArea(LineHighlightArea_None); |
93 } | 100 } |
94 | 101 |