Medical Imaging Interaction Toolkit  2018.4.99-18ddd2ed
Medical Imaging Interaction Toolkit
mitk::DICOMGDCMImageFrameInfo Class Reference

The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM. More...

#include <mitkDICOMGDCMImageFrameInfo.h>

Inheritance diagram for mitk::DICOMGDCMImageFrameInfo:
Collaboration diagram for mitk::DICOMGDCMImageFrameInfo:

Public Member Functions

 mitkClassMacro (DICOMGDCMImageFrameInfo, DICOMDatasetAccessingImageFrameInfo)
 
 mitkNewMacro1Param (DICOMGDCMImageFrameInfo, const std::string &)
 
 mitkNewMacro2Param (DICOMGDCMImageFrameInfo, const std::string &, unsigned int)
 
 mitkNewMacro1Param (DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer &)
 
 mitkNewMacro2Param (DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer &, gdcm::Scanner::TagToValue const &)
 
 ~DICOMGDCMImageFrameInfo () override
 
DICOMDatasetFinding GetTagValueAsString (const DICOMTag &) const override
 Return a DICOMDatasetFinding instance of the tag. The return containes (if valid) the raw value of the tag as a string. More...
 
FindingsListType GetTagValueAsString (const DICOMTagPath &path) const override
 Return a list of DICOMDatasetFindings of the passed tag path. The return containes (if valid) the raw value of the tag as a string. More...
 
std::string GetFilenameIfAvailable () const override
 Return a filename if possible. If DICOM is not read from file but from somewhere else (network, database), we might not have files. More...
 
- Public Member Functions inherited from mitk::DICOMDatasetAccessingImageFrameInfo
 mitkClassMacro (DICOMDatasetAccessingImageFrameInfo, DICOMImageFrameInfo)
 
- Public Member Functions inherited from mitk::DICOMImageFrameInfo
 mitkClassMacroItkParent (DICOMImageFrameInfo, itk::LightObject)
 
 mitkNewMacro1Param (DICOMImageFrameInfo, const std::string &)
 
 mitkNewMacro2Param (DICOMImageFrameInfo, const std::string &, unsigned int)
 
bool operator== (const DICOMImageFrameInfo &other) const
 
- Public Member Functions inherited from mitk::DICOMDatasetAccess
virtual ~DICOMDatasetAccess ()
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::DICOMImageFrameInfo
static Pointer New ()
 

Protected Member Functions

 DICOMGDCMImageFrameInfo (const DICOMImageFrameInfo::Pointer &frameinfo)
 
 DICOMGDCMImageFrameInfo (const DICOMImageFrameInfo::Pointer &frameinfo, gdcm::Scanner::TagToValue const &tagToValueMapping)
 
 DICOMGDCMImageFrameInfo (const std::string &filename="", unsigned int frameNo=0)
 
- Protected Member Functions inherited from mitk::DICOMDatasetAccessingImageFrameInfo
 DICOMDatasetAccessingImageFrameInfo (const std::string &filename="", unsigned int frameNo=0)
 
 ~DICOMDatasetAccessingImageFrameInfo () override
 
- Protected Member Functions inherited from mitk::DICOMImageFrameInfo
 DICOMImageFrameInfo (const std::string &filename="", unsigned int frameNo=0)
 

Protected Attributes

const gdcm::Scanner::TagToValue m_TagForValue
 

Additional Inherited Members

- Public Types inherited from mitk::DICOMDatasetAccess
typedef std::list< DICOMDatasetFindingFindingsListType
 
- Public Attributes inherited from mitk::DICOMImageFrameInfo
const std::string Filename
 absolute filename More...
 
const unsigned int FrameNo
 frame number, starting with 0 More...
 

Detailed Description

The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM.

This class combines a DICOMImageFrameInfo object with the scanning results from gdcm::Scanner. The scanning results will be used to implement the tag access methods of DICOMDatasetAccess.

Definition at line 30 of file mitkDICOMGDCMImageFrameInfo.h.

Constructor & Destructor Documentation

◆ ~DICOMGDCMImageFrameInfo()

mitk::DICOMGDCMImageFrameInfo::~DICOMGDCMImageFrameInfo ( )
override

Definition at line 37 of file mitkDICOMGDCMImageFrameInfo.cpp.

References GetTagValueAsString().

Referenced by DICOMGDCMImageFrameInfo().

◆ DICOMGDCMImageFrameInfo() [1/3]

mitk::DICOMGDCMImageFrameInfo::DICOMGDCMImageFrameInfo ( const DICOMImageFrameInfo::Pointer &  frameinfo)
explicitprotected

Definition at line 23 of file mitkDICOMGDCMImageFrameInfo.cpp.

Referenced by DICOMGDCMImageFrameInfo().

◆ DICOMGDCMImageFrameInfo() [2/3]

mitk::DICOMGDCMImageFrameInfo::DICOMGDCMImageFrameInfo ( const DICOMImageFrameInfo::Pointer &  frameinfo,
gdcm::Scanner::TagToValue const &  tagToValueMapping 
)
protected

Definition at line 30 of file mitkDICOMGDCMImageFrameInfo.cpp.

References ~DICOMGDCMImageFrameInfo().

◆ DICOMGDCMImageFrameInfo() [3/3]

mitk::DICOMGDCMImageFrameInfo::DICOMGDCMImageFrameInfo ( const std::string &  filename = "",
unsigned int  frameNo = 0 
)
protected

Definition at line 16 of file mitkDICOMGDCMImageFrameInfo.cpp.

References DICOMGDCMImageFrameInfo().

Member Function Documentation

◆ GetFilenameIfAvailable()

std::string mitk::DICOMGDCMImageFrameInfo::GetFilenameIfAvailable ( ) const
overridevirtual

Return a filename if possible. If DICOM is not read from file but from somewhere else (network, database), we might not have files.

Implements mitk::DICOMDatasetAccess.

Definition at line 106 of file mitkDICOMGDCMImageFrameInfo.cpp.

References mitk::DICOMImageFrameInfo::Filename.

Referenced by GetTagValueAsString().

◆ GetTagValueAsString() [1/2]

mitk::DICOMDatasetFinding mitk::DICOMGDCMImageFrameInfo::GetTagValueAsString ( const DICOMTag tag) const
overridevirtual

Return a DICOMDatasetFinding instance of the tag. The return containes (if valid) the raw value of the tag as a string.

Parameters
tagTag which value should be retreived.

Implements mitk::DICOMDatasetAccess.

Definition at line 43 of file mitkDICOMGDCMImageFrameInfo.cpp.

References mitk::DICOMTag::GetElement(), mitk::DICOMTag::GetGroup(), mitk::DICOMDatasetFinding::isValid, m_TagForValue, and mitk::DICOMDatasetFinding::value.

Referenced by GetTagValueAsString(), and ~DICOMGDCMImageFrameInfo().

◆ GetTagValueAsString() [2/2]

mitk::DICOMDatasetAccess::FindingsListType mitk::DICOMGDCMImageFrameInfo::GetTagValueAsString ( const DICOMTagPath path) const
overridevirtual

Return a list of DICOMDatasetFindings of the passed tag path. The return containes (if valid) the raw value of the tag as a string.

Parameters
pathTag path which value should be retreived.

Implements mitk::DICOMDatasetAccess.

Definition at line 94 of file mitkDICOMGDCMImageFrameInfo.cpp.

References GetFilenameIfAvailable(), mitk::DICOMTagPath::GetFirstNode(), GetTagValueAsString(), mitk::DICOMTagPath::IsExplicit(), mitk::DICOMTagPath::Size(), and mitk::DICOMTagPath::NodeInfo::tag.

◆ mitkClassMacro()

mitk::DICOMGDCMImageFrameInfo::mitkClassMacro ( DICOMGDCMImageFrameInfo  ,
DICOMDatasetAccessingImageFrameInfo   
)

◆ mitkNewMacro1Param() [1/2]

mitk::DICOMGDCMImageFrameInfo::mitkNewMacro1Param ( DICOMGDCMImageFrameInfo  ,
const std::string &   
)

◆ mitkNewMacro1Param() [2/2]

mitk::DICOMGDCMImageFrameInfo::mitkNewMacro1Param ( DICOMGDCMImageFrameInfo  ,
const DICOMImageFrameInfo::Pointer &   
)

◆ mitkNewMacro2Param() [1/2]

mitk::DICOMGDCMImageFrameInfo::mitkNewMacro2Param ( DICOMGDCMImageFrameInfo  ,
const std::string &  ,
unsigned  int 
)

◆ mitkNewMacro2Param() [2/2]

mitk::DICOMGDCMImageFrameInfo::mitkNewMacro2Param ( DICOMGDCMImageFrameInfo  ,
const DICOMImageFrameInfo::Pointer &  ,
gdcm::Scanner::TagToValue const &   
)

◆ New()

static Pointer mitk::DICOMGDCMImageFrameInfo::New ( )
static

Member Data Documentation

◆ m_TagForValue

const gdcm::Scanner::TagToValue mitk::DICOMGDCMImageFrameInfo::m_TagForValue
protected

Definition at line 54 of file mitkDICOMGDCMImageFrameInfo.h.

Referenced by GetTagValueAsString().


The documentation for this class was generated from the following files: