diff Framework/Scene2D/FloatTextureSceneLayer.h @ 773:b8dfd966b5f4

FloatTextureSceneLayer::SetInverted()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 May 2019 13:44:34 +0200
parents 4ba8892870a2
children ba9db2ad317c 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Scene2D/FloatTextureSceneLayer.h	Fri May 24 11:04:41 2019 +0200
+++ b/Framework/Scene2D/FloatTextureSceneLayer.h	Fri May 24 13:44:34 2019 +0200
@@ -31,6 +31,7 @@
     ImageWindowing   windowing_;
     float            customCenter_;
     float            customWidth_;
+    bool             inverted_;
 
   public:
     // The pixel format must be convertible to "Float32"
@@ -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;