X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FvtkGdcmReader.cxx;h=94fc11ce25d4a61be44507575f994eb62ad690f4;hb=4bf182cf9dc4861758c5b1ff963ffdf8a71465bf;hp=51597358c097dcee5ff34b7bf24c16ad0c3ba973;hpb=c4fa2e74a4ce56a0a8db54e4a70d404bec9fc8dd;p=gdcm.git diff --git a/vtk/vtkGdcmReader.cxx b/vtk/vtkGdcmReader.cxx index 51597358..94fc11ce 100644 --- a/vtk/vtkGdcmReader.cxx +++ b/vtk/vtkGdcmReader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmReader.cxx,v $ Language: C++ - Date: $Date: 2005/08/30 14:40:35 $ - Version: $Revision: 1.77 $ + Date: $Date: 2005/08/31 08:28:32 $ + Version: $Revision: 1.80 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -69,7 +69,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.77 $") +vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.80 $") vtkStandardNewMacro(vtkGdcmReader) //----------------------------------------------------------------------------- @@ -79,7 +79,7 @@ vtkGdcmReader::vtkGdcmReader() this->LookupTable = NULL; this->AllowLookupTable = false; this->AllowLightChecking = false; - this->LoadMode = GDCM_LD_ALL; // Load everything (possible values : + this->LoadMode = gdcm::LD_ALL; // Load everything (possible values : // - LD_NOSEQ, // - LD_NOSHADOW, // - LD_NOSHADOWSEQ) @@ -540,7 +540,11 @@ void vtkGdcmReader::GetFileInformation(gdcm::File *file) this->NumColumns = file->GetXSize(); this->NumLines = file->GetYSize(); this->NumPlanes = file->GetZSize(); - this->TotalNumberOfPlanes = this->NumPlanes*InternalFileNameList.size(); + + if (CoherentFileList == 0) + this->TotalNumberOfPlanes = this->NumPlanes*InternalFileNameList.size(); + else + this->TotalNumberOfPlanes = this->NumPlanes*CoherentFileList->size(); this->ImageType = file->GetPixelType(); this->PixelSize = file->GetPixelSize(); @@ -593,8 +597,8 @@ bool vtkGdcmReader::TestFileInformation(gdcm::File *file) int numColumns = file->GetXSize(); int numLines = file->GetYSize(); int numPlanes = file->GetZSize(); - int pixelSize = file->GetPixelSize(); int numComponents; + unsigned int pixelSize = file->GetPixelSize(); if( file->HasLUT() && this->AllowLookupTable ) numComponents = file->GetNumberOfScalarComponentsRaw(); @@ -611,7 +615,7 @@ bool vtkGdcmReader::TestFileInformation(gdcm::File *file) } if( numLines != this->NumLines ) { - vtkErrorMacro(<< "File y value doesn't match with the previous ones: " + vtkErrorMacro(<< "File Y value doesn't match with the previous ones: " << file->GetFileName().c_str() << ". Found " << numLines << ", must be " << this->NumLines); @@ -619,7 +623,7 @@ bool vtkGdcmReader::TestFileInformation(gdcm::File *file) } if( numPlanes != this->NumPlanes ) { - vtkErrorMacro(<< "File z value doesn't match with the previous ones: " + vtkErrorMacro(<< "File Z value doesn't match with the previous ones: " << file->GetFileName().c_str() << ". Found " << numPlanes << ", must be " << this->NumPlanes);