]> Creatis software - gdcm.git/blobdiff - vtk/vtkgdcmSerieViewer.cxx
STYLE: Some minor comment
[gdcm.git] / vtk / vtkgdcmSerieViewer.cxx
index 099b6e4911e75cc4e61bea112197f023d40a55e7..a7b0b1019ac4017b4e2f8fb4abc43f1631acfa85 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: vtkgdcmSerieViewer.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/09/04 15:40:25 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2005/10/18 08:35:55 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,7 +43,7 @@
 #include "gdcmDocument.h"  // for NO_SHADOWSEQ
 #include "gdcmSerieHelper.h"
 #include "gdcmDebug.h"
-#include "gdcmValEntry.h"
+#include "gdcmDataEntry.h"
 
 #include "gdcmArgMgr.h" // for Argument Manager functions
 #include <string.h>     // for strcmp
@@ -337,6 +337,7 @@ int main(int argc, char *argv[])
    }                                    \
    if (nx%2 != 0)                       \
    {                                    \
+      i = nx / 2;                       \
       for (j=0;j<ny;j++)                \
       {                                 \
         imj = (ty *)im  +j*nx;          \
@@ -452,17 +453,17 @@ bool userSuppliedLessThanFunction(gdcm::File *f1, gdcm::File *f2)
    // for *this* user supplied function, I supposed only ValEntries are checked.
 // 
    std::string s1, s2;
-   gdcm::ValEntry *e1,*e2;
+   gdcm::DataEntry *e1,*e2;
    for (int ri=0; ri<orderNb; ri++)
    {
       std::cout << std::hex << elemsToOrderOn[2*ri] << "|" 
                             << elemsToOrderOn[2*ri+1]
                             << std::endl;
  
-      e1= f1->gdcm::Document::GetValEntry( elemsToOrderOn[2*ri],
+      e1= f1->gdcm::Document::GetDataEntry( elemsToOrderOn[2*ri],
                                  elemsToOrderOn[2*ri+1]);
 
-      e2= f2->gdcm::Document::GetValEntry( elemsToOrderOn[2*ri],
+      e2= f2->gdcm::Document::GetDataEntry( elemsToOrderOn[2*ri],
                                  elemsToOrderOn[2*ri+1]);
       if(!e2 || !e2)
       {
@@ -471,8 +472,8 @@ bool userSuppliedLessThanFunction(gdcm::File *f1, gdcm::File *f2)
                               << " not found" << std::endl;
          continue;
       }
-      s1 = e1->gdcm::ValEntry::GetValue();      
-      s2 = e2->gdcm::ValEntry::GetValue();
+      s1 = e1->GetString();      
+      s2 = e2->GetString();
       std::cout << "[" << s1 << "] vs [" << s2 << "]" << std::endl;
       if ( s1 < s2 ) 
          return true;