Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Internals/CairoInfoPanelRenderer.h @ 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 |
comparison
equal
deleted
inserted
replaced
1324:4d8d642f7036 | 1325:be17fed8c7c5 |
---|---|
34 private: | 34 private: |
35 ICairoContextProvider& target_; | 35 ICairoContextProvider& target_; |
36 CairoSurface texture_; | 36 CairoSurface texture_; |
37 BitmapAnchor anchor_; | 37 BitmapAnchor anchor_; |
38 bool isLinearInterpolation_; | 38 bool isLinearInterpolation_; |
39 bool applySceneRotation_; | |
39 | 40 |
40 public: | 41 public: |
41 CairoInfoPanelRenderer(ICairoContextProvider& target, | 42 CairoInfoPanelRenderer(ICairoContextProvider& target, |
42 const ISceneLayer& layer) : | 43 const ISceneLayer& layer) : |
43 target_(target) | 44 target_(target), |
45 anchor_(BitmapAnchor_TopLeft), | |
46 applySceneRotation_(false) | |
47 | |
44 { | 48 { |
45 Update(layer); | 49 Update(layer); |
46 } | 50 } |
47 | 51 |
48 virtual void Update(const ISceneLayer& layer); | 52 virtual void Update(const ISceneLayer& layer); |