From c8bc88db0fc43b4ef9bac3e2eb4b55312f57dab5 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 22 Jun 2004 14:14:01 +0000 Subject: [PATCH] remove tabs --- src/gdcmFile.cxx | 14 +++++++------- src/gdcmHeader.cxx | 10 +++++----- src/gdcmSQItem.cxx | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 1e816219..2643cd0c 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2004/06/22 13:47:33 $ - Version: $Revision: 1.105 $ + Date: $Date: 2004/06/22 14:14:01 $ + Version: $Revision: 1.106 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,7 +36,7 @@ typedef std::pair IterHT; * one sets an a posteriori shadow dictionary (efficiency can be * seen as a side effect). * @param header file to be opened for reading datas - * @return + * @return */ gdcmFile::gdcmFile(gdcmHeader *header) { Header=header; @@ -106,7 +106,7 @@ gdcmFile::~gdcmFile(void) { /** * \ingroup gdcmFile * \brief computes the length (in bytes) to ALLOCATE to receive the - * image(s) pixels (multiframes taken into account) + * image(s) pixels (multiframes taken into account) * \warning : it is NOT the group 7FE0 length * (no interest for compressed images). * @return length to allocate @@ -151,7 +151,7 @@ void gdcmFile::SetPixelDataSizeFromHeader(void) { * Header->GetZSize() * (nb/8)* Header->GetSamplesPerPixel(); std::string str_PhotometricInterpretation = Header->GetEntryByNumber(0x0028,0x0004); - + /*if ( str_PhotometricInterpretation == "PALETTE COLOR " )*/ // pb when undealt Segmented Palette Color @@ -197,12 +197,12 @@ void * gdcmFile::GetImageData (void) { PixelData = new char[lgrTotale]; if (PixelData) { GetImageDataIntoVector(PixelData, lgrTotale); - GetHeader()->SetEntryVoidAreaByNumber(PixelData, + GetHeader()->SetEntryVoidAreaByNumber(PixelData, GetHeader()->GetGrPixel(), GetHeader()->GetNumPixel()); } PixelRead=0; // no PixelRaw - + return(PixelData); } diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index 4318d69f..d5afdca6 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmHeader.cxx,v $ Language: C++ - Date: $Date: 2004/06/21 04:18:25 $ - Version: $Revision: 1.166 $ + Date: $Date: 2004/06/22 14:18:49 $ + Version: $Revision: 1.167 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -320,10 +320,10 @@ int gdcmHeader::GetNumberOfScalarComponents() { if (HasLUT()) // PALETTE COLOR is NOT enough return 3; else - return 1; + return 1; } - - //beware of trailing space at end of string + + //beware of trailing space at end of string if (PhotometricInterpretation.find(GDCM_UNFOUND) < PhotometricInterpretation.length() || PhotometricInterpretation.find("MONOCHROME1") < diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 709456b3..5e4812f2 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSQItem.cxx,v $ Language: C++ - Date: $Date: 2004/06/22 13:47:33 $ - Version: $Revision: 1.11 $ + Date: $Date: 2004/06/22 14:16:45 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -91,15 +91,15 @@ gdcmSQItem::~gdcmSQItem() if (gdcmBinEntry* BinEntry = dynamic_cast< gdcmBinEntry* >(Entry) ) { BinEntry->Write(fp,filetype); - return; + return; } if (gdcmValEntry* ValEntry = dynamic_cast< gdcmValEntry* >(Entry) ) { ValEntry->Write(fp,filetype); - return; + return; } if (gdcmSeqEntry* SeqEntry = dynamic_cast< gdcmSeqEntry* >(Entry) ) { SeqEntry->Write(fp,filetype); - return; + return; } } } @@ -145,7 +145,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group, // that is a method of gdcmDocument :-( gdcmValEntry* Entry = (gdcmValEntry*)0; TagKey key = gdcmDictEntry::TranslateToKey(group, element); - + if ( ! ptagHT->count(key)) { // we assume a Public Dictionnary *is* loaded @@ -179,7 +179,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group, Entry->SetLength(val.length()); docEntries.insert(i,Entry); return true; - } + } if (group == (*i)->GetGroup() && element == (*i)->GetElement() ) { if ( gdcmValEntry* Entry = dynamic_cast(*i) ) -- 2.48.1