X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBinEntry.cxx;h=3e150aaa6326f89ff05803af19ca2cd87f59c402;hb=ff0855eb02f0f8864eaf25c0bd4c7303cb4d5125;hp=70a277807da4e5f5e2df5c5445494242bd593b70;hpb=90034aefc764a5b6c4815c9073606d36956acab1;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 70a27780..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 19:00:39 $ - Version: $Revision: 1.70 $ + 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,11 +77,11 @@ 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 -#ifdef GDCM_WORDS_BIGENDIAN +#if defined(GDCM_WORDS_BIGENDIAN) || defined(GDCM_FORCE_BIGENDIAN_EMULATION) /// \todo FIXME Right now, we only care of Pixels element /// we should deal with *all* the BinEntries /// well not really since we are not interpreting values read... @@ -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