Mercurial > hg > orthanc-stone
diff Applications/Samples/SingleVolumeApplication.h @ 316:ce48c3b3b0e9
fix for new ImageAccessor API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 12:45:27 +0200 |
parents | 5412adf19980 |
children | 557c8ff1db5c |
line wrap: on
line diff
--- a/Applications/Samples/SingleVolumeApplication.h Mon Oct 01 10:46:26 2018 +0200 +++ b/Applications/Samples/SingleVolumeApplication.h Mon Oct 08 12:45:27 2018 +0200 @@ -174,7 +174,7 @@ std::auto_ptr<LayerWidget> widget(new LayerWidget); -#if 0 +#if 1 std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService(), true)); if (series.empty()) { @@ -190,6 +190,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;