comparison 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
comparison
equal deleted inserted replaced
1324:4d8d642f7036 1325:be17fed8c7c5
26 26
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 InfoPanelSceneLayer::InfoPanelSceneLayer(const Orthanc::ImageAccessor& texture, 29 InfoPanelSceneLayer::InfoPanelSceneLayer(const Orthanc::ImageAccessor& texture,
30 BitmapAnchor anchor, 30 BitmapAnchor anchor,
31 bool isLinearInterpolation) : 31 bool isLinearInterpolation,
32 bool applySceneRotation) :
32 texture_(Orthanc::Image::Clone(texture)), 33 texture_(Orthanc::Image::Clone(texture)),
33 anchor_(anchor), 34 anchor_(anchor),
34 isLinearInterpolation_(isLinearInterpolation) 35 isLinearInterpolation_(isLinearInterpolation),
36 applySceneRotation_(applySceneRotation)
35 { 37 {
36 if (texture_->GetFormat() != Orthanc::PixelFormat_RGBA32 && 38 if (texture_->GetFormat() != Orthanc::PixelFormat_RGBA32 &&
37 texture_->GetFormat() != Orthanc::PixelFormat_RGB24) 39 texture_->GetFormat() != Orthanc::PixelFormat_RGB24)
38 { 40 {
39 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageFormat); 41 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageFormat);