diff Framework/Scene2D/FloatTextureSceneLayer.h @ 860:238693c3bc51 am-dev

merge default -> am-dev
author Alain Mazy <alain@mazy.be>
date Mon, 24 Jun 2019 14:35:00 +0200
parents b8dfd966b5f4
children ba9db2ad317c 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Scene2D/FloatTextureSceneLayer.h	Wed Jun 19 17:36:33 2019 +0200
+++ b/Framework/Scene2D/FloatTextureSceneLayer.h	Mon Jun 24 14:35:00 2019 +0200
@@ -31,9 +31,10 @@
     ImageWindowing   windowing_;
     float            customCenter_;
     float            customWidth_;
+    bool             inverted_;
 
   public:
-    // The pixel format must be "Float32"
+    // The pixel format must be convertible to "Float32"
     FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture);
 
     void SetWindowing(ImageWindowing windowing);
@@ -49,6 +50,14 @@
       return windowing_;
     }
 
+    // To achieve MONOCHROME1 photometric interpretation
+    void SetInverted(bool inverted);
+
+    bool IsInverted() const
+    {
+      return inverted_;
+    }
+
     void FitRange();
 
     virtual ISceneLayer* Clone() const;