From 14922bc6265c1a1e183e1643f70fa57c413b5d99 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 25 Aug 2005 13:45:40 +0000 Subject: [PATCH] According to Mathieu's suggestion, Print now display FL BinEntries in a human readable form --- src/gdcmBinEntry.cxx | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 25748140..3f2325e3 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/03/02 17:15:52 $ - Version: $Revision: 1.72 $ + Date: $Date: 2005/08/25 13:45:40 $ + Version: $Revision: 1.73 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -143,8 +143,24 @@ 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