+/*=========================================================================
+
+ 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.
// * the produced vtk file is named "foo.vtk" (in the invocation directory).
//
//----------------------------------------------------------------------------
-#include <iostream>
-
#include <vtkRenderWindowInteractor.h>
#include <vtkImageViewer.h>
#include <vtkStructuredPoints.h>
writer->SetInput( reader->GetOutput());
writer->SetFileName( "foo.vtk" );
writer->SetFileTypeToBinary();
- writer->Write();
+ //writer->Write();
reader->Delete();
iren->Delete();