]> Creatis software - gdcm.git/commitdiff
remove tabs
authorjpr <jpr>
Tue, 22 Jun 2004 14:14:01 +0000 (14:14 +0000)
committerjpr <jpr>
Tue, 22 Jun 2004 14:14:01 +0000 (14:14 +0000)
src/gdcmFile.cxx
src/gdcmHeader.cxx
src/gdcmSQItem.cxx

index 1e816219f439b8fdd5fe53aca9aa674f88e867c2..2643cd0c30a49a6b94837f2f0cae219913d7fa0e 100644 (file)
@@ -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<TagDocEntryHT::iterator,TagDocEntryHT::iterator> 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);
 }
 
index 4318d69fb01310a6f71f958321131cc4d9ba1361..d5afdca66f09f745142cdbd2fc35aa137b82a3ff 100644 (file)
@@ -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") < 
index 709456b363566e60feb1d23080c75ebc176bcebb..5e4812f28e8db2f67aa3c1e6c25b41e94bea3e20 100644 (file)
@@ -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<gdcmValEntry*>(*i) )