diff Applications/Samples/SingleVolumeApplication.h @ 369:557c8ff1db5c am-2

integration mainline->am-2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 10:03:14 +0100
parents ce4405d98b92 ce48c3b3b0e9
children 3e6e10a5a6c8
line wrap: on
line diff
--- a/Applications/Samples/SingleVolumeApplication.h	Thu Nov 01 12:09:11 2018 +0100
+++ b/Applications/Samples/SingleVolumeApplication.h	Mon Nov 05 10:03:14 2018 +0100
@@ -173,8 +173,8 @@
 
         std::auto_ptr<LayerWidget> widget(new LayerWidget);
 
-#if 0
-        std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context_->GetWebService(), true));
+#if 1
+        std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService(), true));
         if (series.empty())
         {
           volume->ScheduleLoadInstance(instance);
@@ -189,6 +189,15 @@
         context_->AddInteractor(new Interactor(*volume, *widget, projection, 0));
         context_->AddSlicedVolume(volume.release());
 
+        if (1)
+        {
+          RenderStyle s;
+          //s.drawGrid_ = true;
+          s.alpha_ = 1;
+          s.windowing_ = ImageWindowing_Bone;
+          widget->SetLayerStyle(0, s);
+        }
+        else
         {
           RenderStyle s;
           s.alpha_ = 1;