Program: gdcm
Module: $RCSfile: gdcmBinEntry.cxx,v $
Language: C++
- Date: $Date: 2005/08/29 13:05:01 $
- Version: $Revision: 1.75 $
+ Date: $Date: 2005/09/07 14:12:23 $
+ Version: $Revision: 1.76 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
else
{
- s << " [" << GetValue()
- << "; length = " << GetLength() << "]";
+ //s << " [" << GetValue()
+ s << " [" << "gdcm::Loaded;OA "
+ << "length = " << GetLength() << "]";
}
}
}
Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/09/07 08:52:58 $
- Version: $Revision: 1.67 $
+ Date: $Date: 2005/09/07 14:12:23 $
+ Version: $Revision: 1.68 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//binary_write(*fp, shortLgr);
//binary_write(*fp, z);
-binary_write(*fp, lgth);
+ binary_write(*fp, lgth);
}
else
{
Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2005/09/07 10:42:30 $
- Version: $Revision: 1.276 $
+ Date: $Date: 2005/09/07 14:12:23 $
+ Version: $Revision: 1.277 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
it != UserForceLoadList.end();
++it)
{
- d = GetDocEntry( (*it).Group, (*it).Elem);
-
gdcmWarningMacro( "Force Load " << std::hex
<< (*it).Group << "|" <<(*it).Elem );
+ d = GetDocEntry( (*it).Group, (*it).Elem);
+
if ( d == NULL)
{
gdcmWarningMacro( "You asked toForce Load " << std::hex
continue;
}
- if ( dynamic_cast<BinEntry *>(d) )
+ BinEntry *b = dynamic_cast<BinEntry *>(d);
+ if ( b )
{
- LoadEntryBinArea((*it).Group, (*it).Elem);
+ LoadEntryBinArea(b);
+ b->SetValue(GDCM_BINLOADED);
continue;
}
// Search the corresponding DocEntry
DocEntry *docElement = GetDocEntry(group, elem);
if ( !docElement )
+ {
+ gdcmWarningMacro(std::hex << group << "|" << elem
+ << "doesn't exist" );
return;
-
+ }
BinEntry *binElement = dynamic_cast<BinEntry *>(docElement);
if ( !binElement )
+ {
+ gdcmWarningMacro(std::hex << group << "|" << elem
+ << "is NOT a BinEntry");
return;
-
+ }
LoadEntryBinArea(binElement);
}
* \brief Loads (or not) the element content depending if its length exceeds
* or not the value specified with Document::SetMaxSizeLoadEntry()
* @param entry Header Entry (Dicom Element) to be dealt with
- * @param forceLoad wheter we want to load its content even if its length
- * exceeds the value specified with Document::SetMaxSizeLoadEntry()
*/
void Document::LoadDocEntry(DocEntry *entry, bool forceLoad)
{
Program: gdcm
Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
Language: C++
- Date: $Date: 2005/08/19 13:15:05 $
- Version: $Revision: 1.76 $
+ Date: $Date: 2005/09/07 14:12:23 $
+ Version: $Revision: 1.77 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// nmask : to propagate sign bit on negative values
int16_t nmask = (int16_t)0x8000;
nmask = nmask >> ( BitsAllocated - BitsStored - 1 );
-/*
-std::cout << "BitsStored " << BitsStored
- << " BitsAllocated " << BitsAllocated
- << std::endl;
-std::cout << std::hex << "pmask " << pmask
- << " smask " << smask
- << " nmask " << nmask
- << std::endl;
-*/
+
for(int i = 0; i<l; i++)
{
*deb = *deb >> (BitsStored - HighBitPosition - 1);
Program: gdcm
Module: $RCSfile: gdcmVR.cxx,v $
Language: C++
- Date: $Date: 2005/09/07 10:39:45 $
- Version: $Revision: 1.39 $
+ Date: $Date: 2005/09/07 14:12:23 $
+ Version: $Revision: 1.40 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
tested != "FD" &&
tested != "OB" &&
tested != "OW" &&
+ tested != "AT" && // Attribute Tag ?!?
tested != "SQ" ;
*/
}