diff Framework/Volumes/VolumeImageGeometry.cpp @ 811:ffec76a5f7eb

deprecating ParallelSlices
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 28 May 2019 18:21:00 +0200
parents e8fdf29cd0ca
children 32eaf4929b08
line wrap: on
line diff
--- a/Framework/Volumes/VolumeImageGeometry.cpp	Tue May 28 18:09:48 2019 +0200
+++ b/Framework/Volumes/VolumeImageGeometry.cpp	Tue May 28 18:21:00 2019 +0200
@@ -309,9 +309,9 @@
 
 
   CoordinateSystem3D VolumeImageGeometry::GetProjectionSlice(VolumeProjection projection,
-                                                             unsigned int depth) const
+                                                             unsigned int z) const
   {
-    if (depth >= GetProjectionDepth(projection))
+    if (z >= GetProjectionDepth(projection))
     {
       throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
     }
@@ -319,7 +319,7 @@
     Vector dim = GetVoxelDimensions(projection);
     CoordinateSystem3D plane = GetProjectionGeometry(projection);
 
-    plane.SetOrigin(plane.GetOrigin() + static_cast<double>(depth) * plane.GetNormal() * dim[2]);
+    plane.SetOrigin(plane.GetOrigin() + static_cast<double>(z) * plane.GetNormal() * dim[2]);
 
     return plane;
   }