]> Creatis software - gdcm.git/blobdiff - vtk/vtkgdcmViewer2.cxx
Add vtkGdcmReader::SetFlipY(bool) (default : true, to keep old behaviour)
[gdcm.git] / vtk / vtkgdcmViewer2.cxx
index 72dd2379a82a08dcbe4610dc2fdd8dc0365691ff..b840ea1cd471f390c95c2a7b3bac67deda703ce1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: vtkgdcmViewer2.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/10/03 15:50:13 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2009/04/18 14:42:51 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -129,6 +129,14 @@ int main(int argc, char *argv[])
       reader->SetKeepOverlays(true);
    }
 
+// not a very clever way to pass several params
+// but it's just for checking
+   if (strcmp (argv[argc-1], "n") == 0)
+   {
+      argc--; // Is it allowed?!?
+      reader->SetFlipY(false);
+   }
+
    if( argc == 2 )
       reader->SetFileName( argv[1] );
    else