From 21d241b3fdcf675d8d91a6daf6dfd6f448b68195 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 11 Oct 2005 08:24:10 +0000 Subject: [PATCH] Within Print method, change the 'warning value' for Pixel Data, to avoid reader to be confused by 'gdcm::NotLoaded' --- src/gdcmCommon.h | 6 +++--- src/gdcmElementSet.cxx | 12 ++++++++++-- src/gdcmGlobal.cxx | 5 +++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/gdcmCommon.h b/src/gdcmCommon.h index 0c819713..fb43af65 100644 --- a/src/gdcmCommon.h +++ b/src/gdcmCommon.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCommon.h,v $ Language: C++ - Date: $Date: 2005/09/07 08:23:08 $ - Version: $Revision: 1.92 $ + Date: $Date: 2005/10/11 08:24:10 $ + Version: $Revision: 1.93 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -121,7 +121,7 @@ GDCM_EXPORT extern const std::string GDCM_BINLOADED; GDCM_EXPORT extern const std::string GDCM_NOTLOADED; GDCM_EXPORT extern const std::string GDCM_UNREAD; GDCM_EXPORT extern const std::string GDCM_NOTASCII; - +GDCM_EXPORT extern const std::string GDCM_PIXELDATA; /// \brief TagKey is made to hold the standard Dicom Tag /// (Group number, Element number) /// Instead of using the two '16 bits integers' as the Hask Table key, we diff --git a/src/gdcmElementSet.cxx b/src/gdcmElementSet.cxx index 67ff023b..8dddf320 100644 --- a/src/gdcmElementSet.cxx +++ b/src/gdcmElementSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmElementSet.cxx,v $ Language: C++ - Date: $Date: 2005/08/24 12:09:13 $ - Version: $Revision: 1.63 $ + Date: $Date: 2005/10/11 08:24:10 $ + Version: $Revision: 1.64 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -194,6 +194,14 @@ DocEntry *ElementSet::GetDocEntry(uint16_t group, uint16_t elem) */ void ElementSet::Print(std::ostream &os, std::string const & ) { + // Let's change the 'warning value' for Pixel Data, + // to avoid human reader to be confused by 'gdcm::NotLoaded'. + gdcm::BinEntry *pixelElement = GetBinEntry(0x7fe0,0x0010); + if ( pixelElement != 0 ) + { + pixelElement->SetValue( gdcm::GDCM_PIXELDATA); + } + for( TagDocEntryHT::const_iterator i = TagHT.begin(); i != TagHT.end(); ++i) { DocEntry *entry = i->second; diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index 994185b5..c9ccd9d9 100644 --- a/src/gdcmGlobal.cxx +++ b/src/gdcmGlobal.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmGlobal.cxx,v $ Language: C++ - Date: $Date: 2005/09/06 15:31:17 $ - Version: $Revision: 1.25 $ + Date: $Date: 2005/10/11 08:24:10 $ + Version: $Revision: 1.26 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -41,6 +41,7 @@ const std::string GDCM_BINLOADED = "gdcm::Binary data loaded"; const std::string GDCM_NOTLOADED = "gdcm::NotLoaded"; const std::string GDCM_UNREAD = "gdcm::UnRead"; const std::string GDCM_NOTASCII = "gdcm::NotAscii"; +const std::string GDCM_PIXELDATA = "gdcm::Pixel Data to be loaded"; //----------------------------------------------------------------------------- DictSet *Global::Dicts = (DictSet *)0; VR *Global::ValRes = (VR *)0; -- 2.45.1