17 #include <gdcmScanner.h> 35 mitkThrow() <<
"Wrong usage of DICOMGDCMScanner- Called GetTagValue() before scanned at least once. No scanner cache available.";
38 return m_Cache->GetTagValue(frame, tag);
50 for (
auto tagIter = tags.cbegin(); tagIter != tags.cend(); ++tagIter )
60 std::stringstream errorstring;
61 errorstring <<
"Invalid call to DICOMGDCMTagScanner::AddTagPath(). " 62 <<
"Scanner does only support pathes that are explicitly specify one tag. " 63 <<
"Invalid path: "<<path.
ToStr();
65 throw std::invalid_argument(errorstring.str());
72 for (
const auto& path : paths)
74 if (path.Size() != 1 || !path.IsExplicit())
76 std::stringstream errorstring;
77 errorstring <<
"Invalid call to DICOMGDCMTagScanner::AddTagPaths(). " 78 <<
"Scanner does only support pathes that are explicitly specify one tag. " 79 <<
"Invalid path: " << path.ToStr();
81 throw std::invalid_argument(errorstring.str());
83 this->
AddTag(path.GetFirstNode().tag);
104 mitk::DICOMTagCache::Pointer
115 result =
m_Cache->GetFrameInfoList();
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
unsigned int GetElement() const
std::vector< DICOMTag > DICOMTagList
Representation of a DICOM tag.
Describes a frame within a DICOM file.
PathIndexType Size() const
std::string ToStr() const
std::vector< std::string > StringList
std::vector< DICOMTagPath > DICOMTagPathList
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
unsigned int GetGroup() const
NodeInfo & GetFirstNode()