]> Creatis software - gdcm.git/blobdiff - vtk/vtkgdcmViewer.cxx
Minor clean up
[gdcm.git] / vtk / vtkgdcmViewer.cxx
index e80aa55c9df02aa5953b6c28dce4ff52b365f2d5..ff1e6099b46f63a0a0b4b3b1dc0e1447ad4c7367 100644 (file)
 
 #include "vtkGdcmReader.h"
 
+#ifndef vtkFloatingPointType
+#define vtkFloatingPointType float
+#endif
+
 //----------------------------------------------------------------------------
 // Callback for the interaction
 class vtkgdcmObserver : public vtkCommand
@@ -54,15 +58,16 @@ int main(int argc, char *argv[])
     for(int i=1; i< argc; i++)
       reader->AddFileName( argv[i] );
 
-  //reader->DebugOn();
+  reader->DebugOn();
   reader->Update();
   
   //print debug info:
-  reader->GetOutput()->Print( std::cout );
+  reader->GetOutput()->Print( cout );
         
   vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
 
   vtkImageViewer2 *viewer = vtkImageViewer2::New();
+  
   if( reader->GetLookupTable() )
   {
     //convert to color:
@@ -74,6 +79,7 @@ int main(int argc, char *argv[])
     map->Delete();
   }
   else
+  
   {
     viewer->SetInput ( reader->GetOutput() );
   }