| 606 | } |
| 607 | |
| 608 | std::string mitk::DICOMImageBlockDescriptor::GetSOPClassUIDAsName() const |
| 609 | { |
| 610 | if ( !m_ImageFrameList.empty() && !m_TagCache.IsExpired() ) |
| 611 | { |
| 612 | gdcm::UIDs uidKnowledge; |
| 613 | uidKnowledge.SetFromUID( this->GetSOPClassUID().c_str() ); |
| 614 | |
| 615 | const char* name = uidKnowledge.GetName(); |
| 616 | if ( name ) |
| 617 | { |
| 618 | return std::string( name ); |
| 619 | } |
| 620 | else |
| 621 | { |
| 622 | return std::string( "" ); |
| 623 | } |
| 624 | } |
| 625 | else |
| 626 | { |
| 627 | MITK_ERROR << "Invalid call to DICOMImageBlockDescriptor::GetSOPClassUIDAsName(). Need to have " |
| 628 | "initialized tag-cache!"; |
| 629 | return std::string( "" ); |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | int mitk::DICOMImageBlockDescriptor::GetNumberOfTimeSteps() const |
| 634 | { |
no test coverage detected