diff Framework/Toolbox/Slice.h @ 85:bd48431ac285 wasm

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 12:20:26 +0200
parents f5f54ed8d307
children f244018a4e4b
line wrap: on
line diff
--- a/Framework/Toolbox/Slice.h	Wed May 24 23:25:36 2017 +0200
+++ b/Framework/Toolbox/Slice.h	Fri May 26 12:20:26 2017 +0200
@@ -32,6 +32,7 @@
     enum Type
     {
       Type_Invalid,
+      Type_Detached,
       Type_OrthancInstance
       // TODO A slice could come from some DICOM file (URL)
     };
@@ -52,6 +53,21 @@
     {        
     }
 
+    // TODO Is this constructor the best way to go to tackle missing
+    // layers within LayerWidget?
+    Slice(const SliceGeometry& plane,
+          double thickness) :
+      type_(Type_Detached),
+      frame_(0),
+      geometry_(plane),
+      pixelSpacingX_(1),
+      pixelSpacingY_(1),
+      thickness_(thickness),
+      width_(0),
+      height_(0)
+    {      
+    }
+
     bool ParseOrthancFrame(const OrthancPlugins::IDicomDataset& dataset,
                            const std::string& instanceId,
                            unsigned int frame);