Mercurial > hg > orthanc-stone
diff Framework/Scene2D/InfoPanelSceneLayer.cpp @ 1325:be17fed8c7c5 broker
Added flag in InfoPanelSceneLayer to
apply the scene rotation to the
displayed image.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 24 Mar 2020 20:34:28 +0100 |
parents | 2d8ab34c8c91 |
children | 30deba7bc8e2 |
line wrap: on
line diff
--- a/Framework/Scene2D/InfoPanelSceneLayer.cpp Tue Mar 24 16:24:26 2020 +0100 +++ b/Framework/Scene2D/InfoPanelSceneLayer.cpp Tue Mar 24 20:34:28 2020 +0100 @@ -28,10 +28,12 @@ { InfoPanelSceneLayer::InfoPanelSceneLayer(const Orthanc::ImageAccessor& texture, BitmapAnchor anchor, - bool isLinearInterpolation) : + bool isLinearInterpolation, + bool applySceneRotation) : texture_(Orthanc::Image::Clone(texture)), anchor_(anchor), - isLinearInterpolation_(isLinearInterpolation) + isLinearInterpolation_(isLinearInterpolation), + applySceneRotation_(applySceneRotation) { if (texture_->GetFormat() != Orthanc::PixelFormat_RGBA32 && texture_->GetFormat() != Orthanc::PixelFormat_RGB24)