Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/AngleMeasureTool.cpp @ 827:2fd96a637a59
Added FusioMpr sample + small dumb changes
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 13:44:55 +0200 |
parents | e42b491f1fb2 |
children | a29c13497557 |
comparison
equal
deleted
inserted
replaced
818:e42b491f1fb2 | 827:2fd96a637a59 |
---|---|
25 #include <Core/Logging.h> | 25 #include <Core/Logging.h> |
26 | 26 |
27 #include <boost/math/constants/constants.hpp> | 27 #include <boost/math/constants/constants.hpp> |
28 #include <boost/make_shared.hpp> | 28 #include <boost/make_shared.hpp> |
29 | 29 |
30 // <HACK> | 30 //// <HACK> |
31 // REMOVE THIS | 31 //// REMOVE THIS |
32 #ifndef NDEBUG | 32 //#ifndef NDEBUG |
33 extern void | 33 //extern void |
34 TrackerSample_SetInfoDisplayMessage(std::string key, std::string value); | 34 //TrackerSample_SetInfoDisplayMessage(std::string key, std::string value); |
35 #endif | 35 //#endif |
36 // </HACK> | 36 //// </HACK> |
37 | 37 |
38 namespace OrthancStone | 38 namespace OrthancStone |
39 { | 39 { |
40 // the params in the LayerHolder ctor specify the number of polyline and text | 40 // the params in the LayerHolder ctor specify the number of polyline and text |
41 // layers | 41 // layers |
173 sprintf(buf, "%0.02f\xc2\xb0", angleDeg); | 173 sprintf(buf, "%0.02f\xc2\xb0", angleDeg); |
174 | 174 |
175 SetTextLayerOutlineProperties( | 175 SetTextLayerOutlineProperties( |
176 GetScene(), layerHolder_, buf, ScenePoint2D(pointX, pointY)); | 176 GetScene(), layerHolder_, buf, ScenePoint2D(pointX, pointY)); |
177 | 177 |
178 #if 0 | |
178 // TODO:make it togglable | 179 // TODO:make it togglable |
179 bool enableInfoDisplay = false; | 180 bool enableInfoDisplay = false; |
180 if (enableInfoDisplay) | 181 if (enableInfoDisplay) |
181 { | 182 { |
182 TrackerSample_SetInfoDisplayMessage("center_.GetX()", | 183 TrackerSample_SetInfoDisplayMessage("center_.GetX()", |
222 boost::lexical_cast<std::string>(pointY)); | 223 boost::lexical_cast<std::string>(pointY)); |
223 | 224 |
224 TrackerSample_SetInfoDisplayMessage("angleDeg", | 225 TrackerSample_SetInfoDisplayMessage("angleDeg", |
225 boost::lexical_cast<std::string>(angleDeg)); | 226 boost::lexical_cast<std::string>(angleDeg)); |
226 } | 227 } |
228 #endif | |
227 } | 229 } |
228 } | 230 } |
229 else | 231 else |
230 { | 232 { |
231 RemoveFromScene(); | 233 RemoveFromScene(); |