Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.cpp @ 1195:bdc6837d5917 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 27 Nov 2019 14:34:34 +0100 |
parents | 1a73f852810a f417a0ae282b |
children | 54cbffabdc45 |
comparison
equal
deleted
inserted
replaced
1189:09fc591d8ff9 | 1195:bdc6837d5917 |
---|---|
278 | 278 |
279 BroadcastMessage(RadiographyScene::WindowingChangedMessage(*this)); | 279 BroadcastMessage(RadiographyScene::WindowingChangedMessage(*this)); |
280 } | 280 } |
281 | 281 |
282 | 282 |
283 RadiographyLayer& RadiographyScene::LoadText(const Orthanc::Font& font, | 283 RadiographyLayer& RadiographyScene::LoadText(const std::string& utf8, |
284 const std::string& utf8, | 284 size_t fontSize, |
285 uint8_t foreground, | |
285 RadiographyLayer::Geometry* geometry) | 286 RadiographyLayer::Geometry* geometry) |
286 { | 287 { |
287 std::auto_ptr<RadiographyTextLayer> alpha(new RadiographyTextLayer(*this)); | 288 std::auto_ptr<RadiographyTextLayer> alpha(new RadiographyTextLayer(*this)); |
288 alpha->LoadText(font, utf8); | 289 alpha->LoadText(utf8, fontSize, foreground); |
289 if (geometry != NULL) | 290 if (geometry != NULL) |
290 { | 291 { |
291 alpha->SetGeometry(*geometry); | 292 alpha->SetGeometry(*geometry); |
292 } | 293 } |
293 | 294 |