changeset 1061:eb28dfe432f7

fixed typo in assert. msg. + getters for custom windowing in grayscale layer configurator.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 15 Oct 2019 10:53:28 +0200
parents 839d2bff92ab
children 2d6237221ff1
files Framework/Loaders/LoaderStateMachine.cpp Framework/Scene2D/FloatTextureSceneLayer.cpp Framework/Scene2D/GrayscaleStyleConfigurator.cpp Framework/Scene2D/GrayscaleStyleConfigurator.h
diffstat 4 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Loaders/LoaderStateMachine.cpp	Mon Oct 07 15:09:45 2019 +0200
+++ b/Framework/Loaders/LoaderStateMachine.cpp	Tue Oct 15 10:53:28 2019 +0200
@@ -106,7 +106,7 @@
     {
       LOG(TRACE) << "    LoaderStateMachine(" << std::hex << this << std::dec << 
         ")::Step(): activeCommands_ (" << activeCommands_ << 
-        ") < simultaneousDownloads_ (" << simultaneousDownloads_ << 
+        ") >= simultaneousDownloads_ (" << simultaneousDownloads_ << 
         ") --> will NOT Schedule command";
     }
   }
--- a/Framework/Scene2D/FloatTextureSceneLayer.cpp	Mon Oct 07 15:09:45 2019 +0200
+++ b/Framework/Scene2D/FloatTextureSceneLayer.cpp	Tue Oct 15 10:53:28 2019 +0200
@@ -61,7 +61,6 @@
     }
   }
 
-
   void FloatTextureSceneLayer::SetCustomWindowing(float customCenter,
                                                   float customWidth)
   {
--- a/Framework/Scene2D/GrayscaleStyleConfigurator.cpp	Mon Oct 07 15:09:45 2019 +0200
+++ b/Framework/Scene2D/GrayscaleStyleConfigurator.cpp	Tue Oct 15 10:53:28 2019 +0200
@@ -41,6 +41,11 @@
     customWindowWidth_ = windowWidth;
   }
 
+  void GrayscaleStyleConfigurator::GetCustomWindowing(float& windowCenter, float& windowWidth) const
+  {
+    windowCenter = customWindowCenter_;
+    windowWidth  = customWindowWidth_;
+  }
 
   void GrayscaleStyleConfigurator::SetInverted(bool inverted)
   {
--- a/Framework/Scene2D/GrayscaleStyleConfigurator.h	Mon Oct 07 15:09:45 2019 +0200
+++ b/Framework/Scene2D/GrayscaleStyleConfigurator.h	Tue Oct 15 10:53:28 2019 +0200
@@ -53,7 +53,9 @@
 
     void SetWindowing(ImageWindowing windowing);
 
-    void SetCustomWindowing(float windowWidth, float windowCenter);
+    void SetCustomWindowing(float windowCenter, float windowWidth);
+
+    void GetCustomWindowing(float& windowCenter, float& windowWidth) const;
 
     void SetInverted(bool inverted);