#include <gdcmImage.h>
Inheritance diagram for gdcmImage:

| Public Member Functions | |
| gdcmImage (ListTag::iterator begin, ListTag::iterator end) | |
| ~gdcmImage (void) | |
| Canonical destructor. | |
| virtual void | Print (std::ostream &os=std::cout) | 
| Prints the Object. | |
| void | SetPrintLevel (int level) | 
| std::string | GetEntryByNumber (guint16 group, guint16 element) | 
| Get an entry by number. | |
| std::string | GetEntryByName (TagName name) | 
| Get an entry by name. | |
| TagHeaderEntryHT | GetEntry (void) | 
| Get all entries in a hash table. | |
| ListTag | GetListEntry (void) | 
| Get all entries in a list. | |
| Protected Attributes | |
| ListTag::iterator | beginObj | 
| ListTag::iterator | endObj | 
| int | printLevel | 
| 
 | ||||||||||||
| 
 
 Definition at line 13 of file gdcmImage.cxx. 
 00013 : 00014 gdcmObject(begin,end) 00015 { 00016 } | 
| 
 | 
| Canonical destructor. 
 Definition at line 22 of file gdcmImage.cxx. 
 00023 {
00024 }
 | 
| 
 | 
| Get all entries in a hash table. 
 
 Definition at line 89 of file gdcmObject.cxx. References gdcmObject::beginObj, gdcmObject::endObj, PairHT, and TagHeaderEntryHT. 
 00090 {
00091    TagHeaderEntryHT HT;
00092 
00093    for(ListTag::iterator it=beginObj;it!=endObj;++it)
00094    {
00095       HT.insert( PairHT( (*it)->GetKey(),(*it)) );
00096    }
00097 
00098    return(HT);
00099 }
 | 
| 
 | 
| Get an entry by name. 
 
 
 Definition at line 74 of file gdcmObject.cxx. References GDCM_UNFOUND, gdcmDictSet::GetDefaultPubDict(), gdcmGlobal::GetDicts(), gdcmDictEntry::GetElement(), gdcmObject::GetEntryByNumber(), gdcmDictEntry::GetGroup(), and TagName. 
 00075 {
00076    gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
00077    gdcmDictEntry *dictEntry = (*PubDict).GetDictEntryByName(name); 
00078 
00079    if( dictEntry == NULL)
00080       return GDCM_UNFOUND;
00081    return GetEntryByNumber(dictEntry->GetGroup(),dictEntry->GetElement()); 
00082 }
 | 
| 
 | ||||||||||||
| Get an entry by number. 
 
 Definition at line 57 of file gdcmObject.cxx. References gdcmObject::beginObj, gdcmObject::endObj, and GDCM_UNFOUND. Referenced by gdcmObject::GetEntryByName(). 
 00058 {
00059    for(ListTag::iterator i=beginObj;i!=endObj;++i)
00060    {
00061       if ( (*i)->GetGroup()==group && (*i)->GetElement()==element)
00062          return (*i)->GetValue();
00063    }
00064    
00065    return GDCM_UNFOUND;
00066 }
 | 
| 
 | 
| Get all entries in a list. 
 
 Definition at line 106 of file gdcmObject.cxx. References gdcmObject::beginObj, gdcmObject::endObj, and ListTag. 
 | 
| 
 | 
| Prints the Object. 
 
 Reimplemented from gdcmObject. Definition at line 33 of file gdcmImage.cxx. References gdcmObject::Print(). 
 00034 {
00035    os<<"IMAGE : ";
00036    for(ListTag::iterator i=beginObj;i!=endObj;++i)
00037    {
00038       if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )
00039          os<<(*i)->GetValue();
00040    }
00041    os<<std::endl;
00042 
00043    gdcmObject::Print(os);
00044 }
 | 
| 
 | 
| 
 Definition at line 23 of file gdcmObject.h. 
 00023 { printLevel = level; };
 | 
| 
 | 
| 
 Definition at line 33 of file gdcmObject.h. Referenced by gdcmObject::gdcmObject(), gdcmObject::GetEntry(), gdcmObject::GetEntryByNumber(), gdcmObject::GetListEntry(), and gdcmObject::Print(). | 
| 
 | 
| 
 Definition at line 34 of file gdcmObject.h. Referenced by gdcmObject::gdcmObject(), gdcmObject::GetEntry(), gdcmObject::GetEntryByNumber(), gdcmObject::GetListEntry(), and gdcmObject::Print(). | 
| 
 | 
| 
 Definition at line 36 of file gdcmObject.h. | 
 1.3.6
 
1.3.6