Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyAlphaLayer.cpp @ 503:77e0eb83ff63 am-touch-events
layers are now Observable and emitting LayerEdited messages
author | amazy |
---|---|
date | Tue, 26 Feb 2019 12:58:03 +0100 |
parents | 4eb96c6b4e96 |
children | 42dadae61fa9 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyAlphaLayer.cpp Mon Feb 25 17:57:37 2019 +0100 +++ b/Framework/Radiography/RadiographyAlphaLayer.cpp Tue Feb 26 12:58:03 2019 +0100 @@ -45,6 +45,8 @@ SetSize(image->GetWidth(), image->GetHeight()); alpha_ = raii; + + EmitMessage(RadiographyLayer::LayerEditedMessage(*this)); } void RadiographyAlphaLayer::Render(Orthanc::ImageAccessor& buffer, @@ -84,7 +86,7 @@ if (useWindowing_) { float center, width; - if (scene_.GetWindowing(center, width)) + if (GetScene().GetWindowing(center, width)) { value = center + width / 2.0f; // set it to the maximum pixel value of the image }