X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBinEntry.cxx;h=3e150aaa6326f89ff05803af19ca2cd87f59c402;hb=90028533d21e1950958b444f4eb91b6d78b9bb59;hp=0e677a4941651b331aba8ed6ea0c7ddf1be159aa;hpb=37fd1bd483d69af97351da7ccbd9ed7912fbaa75;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 0e677a49..3e150aaa 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2005/02/11 20:04:07 $ - Version: $Revision: 1.71 $ + Date: $Date: 2005/08/29 13:05:01 $ + Version: $Revision: 1.75 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -77,9 +77,9 @@ void BinEntry::WriteContent(std::ofstream *fp, FileType filetype) size_t lgr = GetLength(); if (BinArea) // the binArea was *actually* loaded { - /// \todo Probabely, the same operation will have to be done when we want - /// to write image with Big Endian Transfert Syntax, - /// and we are working on Little Endian Processor + /// \todo Probably, the same operation should be done if we wanted + /// to write image with Big Endian Transfer Syntax, + /// while working on Little Endian Processor #if defined(GDCM_WORDS_BIGENDIAN) || defined(GDCM_FORCE_BIGENDIAN_EMULATION) /// \todo FIXME Right now, we only care of Pixels element @@ -143,8 +143,46 @@ void BinEntry::Print(std::ostream &os, std::string const & ) void* binArea = GetBinArea(); if (binArea) { - s << " [" << GetValue() - << "; length = " << GetLength() << "]"; + if ( GetVR() == "FL" ) + { + int l = GetReadLength()/4 - 1; + float *beg = (float *)GetBinArea(); + s << " [" << *beg; + if ( l!= 0) + for (int i=0;i