Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.cpp @ 1125:d7e06542304c broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Nov 2019 18:51:04 +0100 |
parents | 383aa2a7d426 35e798b16b65 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1124:a8bf81756839 | 1125:d7e06542304c |
---|---|
310 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | 310 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); |
311 } | 311 } |
312 | 312 |
313 | 313 |
314 void RadiographyLayer::SetPixelSpacing(double x, | 314 void RadiographyLayer::SetPixelSpacing(double x, |
315 double y) | 315 double y, |
316 bool emitLayerEditedEvent) | |
316 { | 317 { |
317 geometry_.SetPixelSpacing(x, y); | 318 geometry_.SetPixelSpacing(x, y); |
318 UpdateTransform(); | 319 UpdateTransform(); |
319 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | 320 if (emitLayerEditedEvent) |
321 { | |
322 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | |
323 } | |
320 } | 324 } |
321 | 325 |
322 | 326 |
323 void RadiographyLayer::GetCenter(double& centerX, | 327 void RadiographyLayer::GetCenter(double& centerX, |
324 double& centerY) const | 328 double& centerY) const |