comparison Framework/Scene2DViewport/MeasureToolsToolbox.cpp @ 865:a29c13497557

Added operators to ScenePoint2D + highlight support on MouseOver for measuring tools
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 25 Jun 2019 15:24:13 +0200
parents e42b491f1fb2
children 0c5201499af8
comparison
equal deleted inserted replaced
864:ae3eccd0f545 865:a29c13497557
320 textLayer->SetPosition( 320 textLayer->SetPosition(
321 p.GetX() + xoffsets[i] * pixelToScene, 321 p.GetX() + xoffsets[i] * pixelToScene,
322 p.GetY() + yoffsets[i] * pixelToScene); 322 p.GetY() + yoffsets[i] * pixelToScene);
323 } 323 }
324 } 324 }
325
326 std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p)
327 {
328 os << "x = " << p.GetX() << " , y = " << p.GetY();
329 return os;
330 }
331
325 } 332 }