]> Creatis software - gdcm.git/blobdiff - vtk/vtkgdcmViewer.cxx
ENH: Adding two different viewer. One using vtkImageViewer and the other vtkImageView...
[gdcm.git] / vtk / vtkgdcmViewer.cxx
index 9e1b6a5993dfbd0d69f4314b36f4d7166d06421f..6526c1753482d7afafc3bccfd37eda4ab7476788 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: vtkgdcmViewer.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/02/02 20:10:50 $
+  Version:   $Revision: 1.24 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 // This example illustrates how the vtkGdcmReader vtk class can be
 // used in order to:
 //  * produce a simple (vtk based) Dicom image STACK VIEWER.
@@ -12,8 +29,6 @@
 //  * the produced vtk file is named "foo.vtk" (in the invocation directory).
 // 
 //----------------------------------------------------------------------------
-#include <iostream>
-
 #include <vtkRenderWindowInteractor.h>
 #include <vtkImageViewer.h>
 #include <vtkStructuredPoints.h>
@@ -126,7 +141,7 @@ int main(int argc, char *argv[])
    writer->SetInput( reader->GetOutput());
    writer->SetFileName( "foo.vtk" );
    writer->SetFileTypeToBinary();
-   writer->Write();
+   //writer->Write();
 
    reader->Delete();
    iren->Delete();