Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/MeasureTool.cpp @ 1067:05b2e71ed145 broker
removed MessageForwarder, unit tests are ok
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 18:11:40 +0200 |
parents | 9d42f89b8c3c |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1066:b537002f83a9 | 1067:05b2e71ed145 |
---|---|
26 | 26 |
27 #include <boost/math/constants/constants.hpp> | 27 #include <boost/math/constants/constants.hpp> |
28 | 28 |
29 namespace OrthancStone | 29 namespace OrthancStone |
30 { | 30 { |
31 MeasureTool::~MeasureTool() | |
32 { | |
33 // if the controller is dead, let's not bother. | |
34 boost::shared_ptr<ViewportController> controller = controllerW_.lock(); | |
35 if (controller) | |
36 controller->Unregister(this); | |
37 } | |
38 | |
39 void MeasureTool::Enable() | 31 void MeasureTool::Enable() |
40 { | 32 { |
41 enabled_ = true; | 33 enabled_ = true; |
42 RefreshScene(); | 34 RefreshScene(); |
43 } | 35 } |