Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.cpp @ 1190:f417a0ae282b
wip: TextLayer with new fonts
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 26 Nov 2019 15:27:48 +0100 |
parents | 4663f158c748 |
children | bdc6837d5917 a5f2a6b04a31 |
comparison
equal
deleted
inserted
replaced
1184:848dcba80d81 | 1190:f417a0ae282b |
---|---|
280 | 280 |
281 BroadcastMessage(RadiographyScene::WindowingChangedMessage(*this)); | 281 BroadcastMessage(RadiographyScene::WindowingChangedMessage(*this)); |
282 } | 282 } |
283 | 283 |
284 | 284 |
285 RadiographyLayer& RadiographyScene::LoadText(const Orthanc::Font& font, | 285 RadiographyLayer& RadiographyScene::LoadText(const std::string& utf8, |
286 const std::string& utf8, | 286 size_t fontSize, |
287 uint8_t foreground, | |
287 RadiographyLayer::Geometry* geometry) | 288 RadiographyLayer::Geometry* geometry) |
288 { | 289 { |
289 std::auto_ptr<RadiographyTextLayer> alpha(new RadiographyTextLayer(IObservable::GetBroker(), *this)); | 290 std::auto_ptr<RadiographyTextLayer> alpha(new RadiographyTextLayer(IObservable::GetBroker(), *this)); |
290 alpha->LoadText(font, utf8); | 291 alpha->LoadText(utf8, fontSize, foreground); |
291 if (geometry != NULL) | 292 if (geometry != NULL) |
292 { | 293 { |
293 alpha->SetGeometry(*geometry); | 294 alpha->SetGeometry(*geometry); |
294 } | 295 } |
295 | 296 |