diff Framework/Volumes/DicomVolumeImage.cpp @ 1072:391fb6d6905d

OrthancMultiframeVolumeLoader asks volume image to compute range + added IsContextLost to wasm viewport + added "computeRange" bool property to DicomVolumeImage + added ability to ask the MPR slicer for its source volume (to retrieve voxel value range)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 16 Oct 2019 15:43:21 +0200
parents f6be9412e42a
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Volumes/DicomVolumeImage.cpp	Tue Oct 15 14:30:19 2019 +0200
+++ b/Framework/Volumes/DicomVolumeImage.cpp	Wed Oct 16 15:43:21 2019 +0200
@@ -36,12 +36,14 @@
   }
     
 
-  void DicomVolumeImage::Initialize(const VolumeImageGeometry& geometry,
-                                    Orthanc::PixelFormat format)
+  void DicomVolumeImage::Initialize(
+    const VolumeImageGeometry& geometry,
+    Orthanc::PixelFormat format, 
+    bool computeRange)
   {
     geometry_.reset(new VolumeImageGeometry(geometry));
     image_.reset(new ImageBuffer3D(format, geometry_->GetWidth(), geometry_->GetHeight(),
-                                   geometry_->GetDepth(), false /* don't compute range */));
+                                   geometry_->GetDepth(), computeRange));
 
     revision_ ++;
   }