From 203521dab07f8ff3325b78969f6994b4a1c4375e Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 25 Aug 2005 14:59:49 +0000 Subject: [PATCH] Now Print displays the BinEntry Content (if it's printable, and loaded) Usefull for a lot od Implicit VR 'Bin'Entry (if we knew there VR, they wouldn't be Bin ...) Appreciate the difference having a look at PrintFile result for gdcmData/SIEMENS_MAGNETOM-12-MONO2-FileSeq0.dcm. --- src/gdcmBinEntry.cxx | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 3f2325e3..fdbda3f1 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/08/25 13:45:40 $ - Version: $Revision: 1.73 $ + Date: $Date: 2005/08/25 14:59:49 $ + Version: $Revision: 1.74 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -156,10 +156,33 @@ void BinEntry::Print(std::ostream &os, std::string const & ) } s << "]"; } + else if ( GetVR() == "FD" ) + { + int l = GetReadLength()/8 - 1; + double *beg = (double *)GetBinArea(); + s << " [" << *beg; + if ( l!= 0) + for (int i=0;i