Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Encapsulates the tag scanning process for a set of DICOM files. More...
#include <mitkDICOMGDCMTagScanner.h>
Public Member Functions | |
mitkClassMacro (DICOMGDCMTagScanner, DICOMTagScanner) | |
Pointer | Clone () const |
void | AddTag (const DICOMTag &tag) override |
Add this tag to the scanning process. More... | |
void | AddTags (const DICOMTagList &tags) override |
Add a list of tags to the scanning process. More... | |
void | AddTagPath (const DICOMTagPath &tag) override |
Add this tag path to the scanning process. More... | |
void | AddTagPaths (const DICOMTagPathList &tags) override |
Add a list of tag pathes to the scanning process. More... | |
void | SetInputFiles (const StringList &filenames) override |
Define the list of files to scan. This does not ADD to an internal list, but it replaces the whole list of files. More... | |
void | Scan () override |
Start the scanning process. Calling Scan() will invalidate previous scans, forgetting all about files and tags from files that have been scanned previously. More... | |
DICOMDatasetAccessingImageFrameList | GetFrameInfoList () const override |
Retrieve a result list for file-by-file tag access. More... | |
DICOMTagCache::Pointer | GetScanCache () const override |
Retrieve Pointer to the complete cache of the scan. More... | |
virtual DICOMDatasetFinding | GetTagValue (DICOMImageFrameInfo *frame, const DICOMTag &tag) const |
Directly retrieve the tag value for a given frame and tag. More... | |
![]() | |
mitkClassMacroItkParent (DICOMTagScanner, itk::Object) | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
DICOMGDCMTagScanner () | |
~DICOMGDCMTagScanner () override | |
![]() | |
void | PushLocale () const |
Remember current locale on stack, activate "C" locale. "C" locale is required for correct parsing of numbers by itk::ImageSeriesReader. More... | |
void | PopLocale () const |
Activate last remembered locale from locale stack "C" locale is required for correct parsing of numbers by itk::ImageSeriesReader. More... | |
DICOMTagScanner () | |
~DICOMTagScanner () override | |
Protected Attributes | |
std::set< DICOMTag > | m_ScannedTags |
StringList | m_InputFilenames |
DICOMGDCMTagCache::Pointer | m_Cache |
std::shared_ptr< gdcm::Scanner > | m_GDCMScanner |
Additional Inherited Members | |
![]() | |
static std::string | GetActiveLocale () |
Return active C locale. More... | |
Encapsulates the tag scanning process for a set of DICOM files.
Formerly integrated as a part of DICOMITKSeriesGDCMReader, the tag scanning part has been factored out into this DICOMGDCMTagScanner class in order to allow a single scan for multiple reader alternatives. This helps much in the selection process of e.g. DICOMFileReaderSelector.
The class works similar to gdcm::Scanner, just with the MITK set of classes:
When used in a process where multiple classes will access the scan results, care should be taken that all the tags and files of interest are communicated to DICOMGDCMTagScanner before requesting the results!
Definition at line 48 of file mitkDICOMGDCMTagScanner.h.
|
protected |
Definition at line 19 of file mitkDICOMGDCMTagScanner.cpp.
References m_GDCMScanner.
|
overrideprotected |
Definition at line 24 of file mitkDICOMGDCMTagScanner.cpp.
|
overridevirtual |
Add this tag to the scanning process.
Implements mitk::DICOMTagScanner.
Definition at line 41 of file mitkDICOMGDCMTagScanner.cpp.
References mitk::DICOMTag::GetElement(), mitk::DICOMTag::GetGroup(), m_GDCMScanner, and m_ScannedTags.
Referenced by AddTagPath(), AddTagPaths(), and AddTags().
|
overridevirtual |
Add this tag path to the scanning process.
Implements mitk::DICOMTagScanner.
Definition at line 56 of file mitkDICOMGDCMTagScanner.cpp.
References AddTag(), mitk::DICOMTagPath::GetFirstNode(), mitk::DICOMTagPath::IsExplicit(), MITK_ERROR, mitk::DICOMTagPath::Size(), mitk::DICOMTagPath::NodeInfo::tag, and mitk::DICOMTagPath::ToStr().
|
overridevirtual |
Add a list of tag pathes to the scanning process.
Implements mitk::DICOMTagScanner.
Definition at line 70 of file mitkDICOMGDCMTagScanner.cpp.
References AddTag(), and MITK_ERROR.
|
overridevirtual |
Add a list of tags to the scanning process.
Implements mitk::DICOMTagScanner.
Definition at line 48 of file mitkDICOMGDCMTagScanner.cpp.
References AddTag().
Pointer mitk::DICOMGDCMTagScanner::Clone | ( | ) | const |
|
overridevirtual |
Retrieve a result list for file-by-file tag access.
Implements mitk::DICOMTagScanner.
Definition at line 110 of file mitkDICOMGDCMTagScanner.cpp.
References m_Cache.
|
overridevirtual |
Retrieve Pointer to the complete cache of the scan.
Implements mitk::DICOMTagScanner.
Definition at line 105 of file mitkDICOMGDCMTagScanner.cpp.
References m_Cache.
|
virtual |
Directly retrieve the tag value for a given frame and tag.
Definition at line 28 of file mitkDICOMGDCMTagScanner.cpp.
mitk::DICOMGDCMTagScanner::mitkClassMacro | ( | DICOMGDCMTagScanner | , |
DICOMTagScanner | |||
) |
|
static |
Referenced by mitk::DICOMITKSeriesGDCMReader::AnalyzeInputFiles(), and ComputeMiliSecDuration().
|
overridevirtual |
Start the scanning process. Calling Scan() will invalidate previous scans, forgetting all about files and tags from files that have been scanned previously.
Implements mitk::DICOMTagScanner.
Definition at line 93 of file mitkDICOMGDCMTagScanner.cpp.
References m_Cache, m_GDCMScanner, m_InputFilenames, m_ScannedTags, and mitk::DICOMGDCMTagCache::New().
|
overridevirtual |
Define the list of files to scan. This does not ADD to an internal list, but it replaces the whole list of files.
Implements mitk::DICOMTagScanner.
Definition at line 87 of file mitkDICOMGDCMTagScanner.cpp.
References m_InputFilenames.
|
protected |
Definition at line 111 of file mitkDICOMGDCMTagScanner.h.
Referenced by GetFrameInfoList(), GetScanCache(), GetTagValue(), and Scan().
|
protected |
Definition at line 112 of file mitkDICOMGDCMTagScanner.h.
Referenced by AddTag(), DICOMGDCMTagScanner(), and Scan().
|
protected |
Definition at line 110 of file mitkDICOMGDCMTagScanner.h.
Referenced by Scan(), and SetInputFiles().
|
protected |
Definition at line 109 of file mitkDICOMGDCMTagScanner.h.