X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vtk%2FvtkgdcmViewer.cxx;h=97f305cec343c08b892460214ca0898efa9fd1a1;hb=20098f1879eb5fb475a5cf7e9dd02b70d6893738;hp=66062c5844c931e1fca994cd7d16a6a2725c6113;hpb=a32db316616e02be295e4b5addca1e94f4a2c776;p=gdcm.git diff --git a/vtk/vtkgdcmViewer.cxx b/vtk/vtkgdcmViewer.cxx index 66062c58..97f305ce 100644 --- a/vtk/vtkgdcmViewer.cxx +++ b/vtk/vtkgdcmViewer.cxx @@ -39,9 +39,17 @@ class vtkgdcmObserver : public vtkCommand int main(int argc, char *argv[]) { - + if( argc < 2 ) + return 0; + vtkGdcmReader *reader = vtkGdcmReader::New(); - reader->SetFileName( argv[1] ); + + if( argc == 2 ) + reader->SetFileName( argv[1] ); + else + for(int i=1; i< argc; i++) + reader->AddFileName( argv[i] ); + reader->DebugOn(); reader->Update();