diff Framework/dev.h @ 120:063f7f3d9f14 wasm

fix 3d locations of the doses
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Oct 2017 15:51:34 +0200
parents ba83e38cf3ff
children e66b2c757790
line wrap: on
line diff
--- a/Framework/dev.h	Mon Oct 02 22:01:41 2017 +0200
+++ b/Framework/dev.h	Wed Oct 04 15:51:34 2017 +0200
@@ -133,7 +133,7 @@
         // z-dimension for voxels
         spacingZ = 1;
       }
-      
+
       for (size_t i = 1; i < loader.GetSliceCount(); i++)
       {
         if (!GeometryToolbox::IsNear(spacingZ, GetDistance(loader.GetSlice(i - 1), loader.GetSlice(i)),
@@ -156,7 +156,7 @@
       image_->SetVoxelDimensions(loader.GetSlice(0).GetPixelSpacingX(), 
                                  loader.GetSlice(0).GetPixelSpacingY(), spacingZ);
       image_->Clear();
-
+      
       downloadStack_.reset(new DownloadStack(loader.GetSliceCount()));
 
       for (unsigned int i = 0; i < 4; i++)  // Limit to 4 simultaneous downloads
@@ -391,8 +391,6 @@
         default:
           throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
       }
-
-      //sliceThickness_ = 3.0f;  // TODO XXXXX
     }
 
     size_t GetSliceCount() const
@@ -645,10 +643,10 @@
       if (slices_.get() == NULL)
       {
         const OrthancVolumeImage& image = dynamic_cast<const OrthancVolumeImage&>(volume);
-          
+
         slices_.reset(new VolumeImageGeometry(image, projection_));
         SetSlice(slices_->GetSliceCount() / 2);
-          
+
         widget_.SetDefaultView();
       }
     }