Program: gdcm
Module: $RCSfile: VTKTestReadSeq.cxx,v $
Language: C++
- Date: $Date: 2005/01/25 15:45:49 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2007/09/18 07:58:38 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
-#include "gdcmFileHelper.h"
#include "vtkGdcmReader.h"
#include "vtkImageViewer.h"
#include "vtkImageData.h"
#include "vtkImageShiftScale.h"
#include <iostream>
+#include <sstream>
//Generated file:
#include "gdcmDataSeqImages.h"
#define vtkFloatingPointType float
#endif
-int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer,
- std::string const & filename,
- std::string const & referenceFileName)
+int VTKReadSeqTest(vtkTesting *t, vtkImageViewer *viewer,
+ std::string const &filename,
+ std::string const &referenceFileName)
{
- int retVal = 0; //by default this is an error
+ int retVal; // = 0; (to avoid bcc 5.5 warnings)
// Set the reader
vtkGdcmReader *reader = vtkGdcmReader::New();
// make test
int ret = 0;
- ostrstream str;
+ std::ostringstream str;
char *newFilePng = new char[referenceFileName.size()+1];
for(int j=0;j<fileCount;j++)
{
{
std::cerr << str.str();
}
- str.rdbuf()->freeze(1);
if( retVal == vtkTesting::PASSED )
{
}
int ret = 0;
- vtkTesting* t = vtkTesting::New();
+ vtkTesting *t = vtkTesting::New();
vtkImageViewer *viewer;
if( show )
viewer = vtkImageViewer::New();