| 696 | |
| 697 | |
| 698 | void mitk::DICOMImageBlockDescriptor::Print(std::ostream& os, bool filenameDetails) const |
| 699 | { |
| 700 | os << " Number of Frames: '" << m_ImageFrameList.size() << "'" << std::endl; |
| 701 | os << " SOP class: '" << this->GetSOPClassUIDAsName() << "'" << std::endl; |
| 702 | |
| 703 | printProperty( "Series Number", seriesNumber ); |
| 704 | printProperty( "Study Description", studyDescription ); |
| 705 | printProperty( "Series Description", seriesDescription ); |
| 706 | printProperty( "Modality", modality ); |
| 707 | printProperty( "Sequence Name", sequenceName ); |
| 708 | |
| 709 | printPropertyRange( "Slice Location", sliceLocation ); |
| 710 | printPropertyRange( "Acquisition Number", acquisitionNumber ); |
| 711 | printPropertyRange( "Instance Number", instanceNumber ); |
| 712 | printPropertyRange( "Image Position", imagePositionPatient ); |
| 713 | printProperty( "Image Orientation", orientation ); |
| 714 | |
| 715 | os << " Pixel spacing interpretation: '" |
| 716 | << PixelSpacingInterpretationToString( this->GetPixelSpacingInterpretation() ) << "'" << std::endl; |
| 717 | printBool( "Gantry Tilt", this->GetTiltInformation().IsRegularGantryTilt() ) |
| 718 | // printBool("3D+t", this->GetFlag("3D+t",false)) |
| 719 | |
| 720 | // os << " MITK image loaded: '" << (this->GetMitkImage().IsNotNull() ? "yes" : "no") << "'" << |
| 721 | // std::endl; |
| 722 | if ( filenameDetails ) |
| 723 | { |
| 724 | os << " Files in this image block:" << std::endl; |
| 725 | for ( auto frameIter = m_ImageFrameList.begin(); frameIter != m_ImageFrameList.end(); ++frameIter ) |
| 726 | { |
| 727 | os << " " << ( *frameIter )->Filename; |
| 728 | if ( ( *frameIter )->FrameNo > 0 ) |
| 729 | { |
| 730 | os << ", " << ( *frameIter )->FrameNo; |
| 731 | } |
| 732 | os << std::endl; |
| 733 | } |
| 734 | } |
| 735 | } |
| 736 | |
| 737 | #define storeTagValueToProperty( tag_name, tag_g, tag_e ) \ |
| 738 | \ |
nothing calls this directly
no test coverage detected