comparison Framework/Radiography/RadiographyLayer.cpp @ 1121:0073f95a1df1

merge
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 05 Nov 2019 16:31:08 +0100
parents 35e798b16b65
children d7e06542304c 69177b10e2b9
comparison
equal deleted inserted replaced
1120:11b7785dd01b 1121:0073f95a1df1
311 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); 311 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this));
312 } 312 }
313 313
314 314
315 void RadiographyLayer::SetPixelSpacing(double x, 315 void RadiographyLayer::SetPixelSpacing(double x,
316 double y) 316 double y,
317 bool emitLayerEditedEvent)
317 { 318 {
318 geometry_.SetPixelSpacing(x, y); 319 geometry_.SetPixelSpacing(x, y);
319 UpdateTransform(); 320 UpdateTransform();
320 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); 321 if (emitLayerEditedEvent)
322 {
323 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this));
324 }
321 } 325 }
322 326
323 327
324 void RadiographyLayer::GetCenter(double& centerX, 328 void RadiographyLayer::GetCenter(double& centerX,
325 double& centerY) const 329 double& centerY) const