Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h @ 1554:6d14ed6163b1
flip x/y in Stone Web viewer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Aug 2020 16:10:00 +0200 |
parents | 244ad1e4e76a |
children | 85e117739eca |
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h Mon Aug 17 13:25:54 2020 +0200 +++ b/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h Mon Aug 17 16:10:00 2020 +0200 @@ -39,6 +39,8 @@ double pixelSpacingY_; double angle_; bool isLinearInterpolation_; + bool flipX_; + bool flipY_; uint64_t revision_; protected: @@ -65,6 +67,10 @@ void SetAngle(double angle); void SetLinearInterpolation(bool isLinearInterpolation); + + void SetFlipX(bool flip); + + void SetFlipY(bool flip); double GetOriginX() const { @@ -101,6 +107,16 @@ return (texture_.get() != NULL); } + bool IsFlipX() const + { + return flipX_; + } + + bool IsFlipY() const + { + return flipY_; + } + const Orthanc::ImageAccessor& GetTexture() const; AffineTransform2D GetTransform() const;