comparison Framework/Radiography/RadiographyLayer.cpp @ 1118:35e798b16b65

RadiographyDicomLayer: allow replacing low res image by high res image
author Alain Mazy <alain@mazy.be>
date Mon, 04 Nov 2019 22:16:04 +0100
parents d33ae2b0db9d
children d7e06542304c 69177b10e2b9
comparison
equal deleted inserted replaced
1113:3924ddbbadda 1118:35e798b16b65
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