]> Creatis software - gdcm.git/commitdiff
Fix comments
authorjpr <jpr>
Tue, 19 Jul 2005 15:28:54 +0000 (15:28 +0000)
committerjpr <jpr>
Tue, 19 Jul 2005 15:28:54 +0000 (15:28 +0000)
vtk/vtkgdcmSerieViewer.cxx

index 27cd1f41477badf92f9f32609d73c127d22ffe60..5931f66e6901d565428f52d37f56a558253113d5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: vtkgdcmSerieViewer.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/17 04:36:14 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/07/19 15:28:54 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
    while (l)
    { 
       nbFiles = l->size() ;
-      if ( l->size() > 0 ) // Why not ? Just an example, for testing
+      if ( l->size() > 1 )
       {
          std::cout << "Sort list : " << nbFiles << " long" << std::endl;
          sh->OrderFileList(l);  // sort the list
@@ -125,15 +125,13 @@ int main(int argc, char *argv[])
       l = sh->GetNextCoherentFileList();
    }
 
+   // Only the first FileList is dealt with (just an example)
+   // (The files will not be parsed twice by the reader)
+
+   //---------------------------------------------------------
    reader->SetCoherentFileList(l);
+   //---------------------------------------------------------
 
-/*
-   if( argc == 2 )
-      reader->SetFileName( argv[1] );
-   else
-      for(int i=1; i< argc; i++)
-         reader->AddFileName( argv[i] );
-*/
 
 // TODO : allow user to choose Load Mode