changeset 780:f81655ed96ab

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 27 May 2019 10:39:35 +0200
parents e72a9fef3d19
children 2bb72826fa3f
files Samples/Sdl/Loader.cpp
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp	Mon May 27 10:34:34 2019 +0200
+++ b/Samples/Sdl/Loader.cpp	Mon May 27 10:39:35 2019 +0200
@@ -92,7 +92,6 @@
       hasLut_(false),
       hasRange_(false)
     {
-      SetLookupTable(Orthanc::EmbeddedResources::COLORMAP_HOT);   // TODO - test
     }
 
     void SetLookupTable(Orthanc::EmbeddedResources::FileResourceId resource)
@@ -1777,7 +1776,12 @@
   }
 
   toto->SetVolume1(0, loader1, new OrthancStone::GrayscaleStyleConfigurator);
-  toto->SetVolume2(1, loader3, new OrthancStone::LookupTableStyleConfigurator);
+
+  {
+    std::auto_ptr<OrthancStone::LookupTableStyleConfigurator> config(new OrthancStone::LookupTableStyleConfigurator);
+    config->SetLookupTable(Orthanc::EmbeddedResources::COLORMAP_HOT);
+    toto->SetVolume2(1, loader3, config.release());
+  }
 
   oracle.Schedule(*toto, new OrthancStone::SleepOracleCommand(100));