diff OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h @ 1768:226718777702

fix DicomVolumeImageMPRSlicer::Slice::CreateSceneLayer() for opposite normals
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 May 2021 17:18:39 +0200
parents 9ac2a65d4172
children a217140dd41a
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h	Tue May 11 11:42:08 2021 +0200
+++ b/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h	Tue May 11 17:18:39 2021 +0200
@@ -43,6 +43,7 @@
     bool                                   flipX_;
     bool                                   flipY_;
     uint64_t                               revision_;
+    std::unique_ptr<AffineTransform2D>     transform_;   // Manually-specified transformation
 
   protected:
     void SetTexture(Orthanc::ImageAccessor* texture);
@@ -120,6 +121,10 @@
 
     const Orthanc::ImageAccessor& GetTexture() const;
 
+    void SetTransform(const AffineTransform2D& transform);
+
+    void ClearTransform();
+
     AffineTransform2D GetTransform() const;
     
     virtual void GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE;