Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.cpp @ 1272:a989c7d46b9a
options to avoid multiple LayerEditedMessage
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 03 Feb 2020 14:56:56 +0100 |
parents | 69177b10e2b9 |
children | 398ea4259e65 |
comparison
equal
deleted
inserted
replaced
1259:69177b10e2b9 | 1272:a989c7d46b9a |
---|---|
221 | 221 |
222 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | 222 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); |
223 } | 223 } |
224 | 224 |
225 void RadiographyLayer::SetSize(unsigned int width, | 225 void RadiographyLayer::SetSize(unsigned int width, |
226 unsigned int height) | 226 unsigned int height, |
227 bool emitLayerEditedEvent) | |
227 { | 228 { |
228 hasSize_ = true; | 229 hasSize_ = true; |
229 width_ = width; | 230 width_ = width; |
230 height_ = height; | 231 height_ = height; |
231 | 232 |
232 UpdateTransform(); | 233 UpdateTransform(); |
233 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | 234 |
235 if (emitLayerEditedEvent) | |
236 { | |
237 BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); | |
238 } | |
234 } | 239 } |
235 | 240 |
236 | 241 |
237 Extent2D RadiographyLayer::GetExtent() const | 242 Extent2D RadiographyLayer::GetExtent() const |
238 { | 243 { |