changeset 1873:5e7feeb63d1f

SlicesShort
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Dec 2015 09:59:59 +0100
parents 09a737a6bf36
children 950745f3f48b a5cd02894534
files OrthancServer/SliceOrdering.cpp
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/SliceOrdering.cpp	Mon Dec 07 09:48:34 2015 +0100
+++ b/OrthancServer/SliceOrdering.cpp	Mon Dec 07 09:59:59 2015 +0100
@@ -399,6 +399,8 @@
 
     result["Dicom"] = tmp;
 
+    Json::Value slicesShort = Json::arrayValue;
+
     tmp.clear();
     for (size_t i = 0; i < GetInstancesCount(); i++)
     {
@@ -407,8 +409,16 @@
       {
         tmp.append(base + "/frames/" + boost::lexical_cast<std::string>(j));
       }
+
+      Json::Value tmp2 = Json::arrayValue;
+      tmp2.append(GetInstanceId(i));
+      tmp2.append(0);
+      tmp2.append(GetFramesCount(i));
+      
+      slicesShort.append(tmp2);
     }
 
     result["Slices"] = tmp;
+    result["SlicesShort"] = slicesShort;
   }
 }