13 #ifndef mitkDICOMReaderConfigurator_h
14 #define mitkDICOMReaderConfigurator_h
135 DICOMFileReader::Pointer CreateFromXMLDocument(tinyxml2::XMLDocument& doc)
const;
136 DICOMTag tagFromXMLElement(
const tinyxml2::XMLElement*)
const;
137 std::string requiredStringAttribute(
const tinyxml2::XMLElement* xmlElement,
const std::string& key)
const;
138 unsigned int hexStringToUInt(
const std::string& s)
const;
140 ThreeDnTDICOMSeriesReader::Pointer ConfigureThreeDnTDICOMSeriesReader(ThreeDnTDICOMSeriesReader::Pointer reader,
const tinyxml2::XMLElement*)
const;
141 DICOMITKSeriesGDCMReader::Pointer ConfigureDICOMITKSeriesGDCMReader(DICOMITKSeriesGDCMReader::Pointer reader,
const tinyxml2::XMLElement*)
const;
142 void ConfigureCommonPropertiesOfDICOMITKSeriesGDCMReader(DICOMITKSeriesGDCMReader::Pointer reader,
const tinyxml2::XMLElement* element)
const;
143 void ConfigureCommonPropertiesOfThreeDnTDICOMSeriesReader(ThreeDnTDICOMSeriesReader::Pointer reader,
const tinyxml2::XMLElement* element)
const;
145 DICOMSortCriterion::Pointer CreateDICOMSortByTag(
const tinyxml2::XMLElement* xmlElement, DICOMSortCriterion::Pointer secondaryCriterion)
const;
146 DICOMSortCriterion::Pointer CreateSortByImagePositionPatient(
const tinyxml2::XMLElement* xmlElement, DICOMSortCriterion::Pointer secondaryCriterion)
const;
148 mitk::DICOMTagBasedSorter::Pointer CreateDICOMTagBasedSorter(
const tinyxml2::XMLElement* element)
const;
150 tinyxml2::XMLElement* CreateConfigStringFromReader(tinyxml2::XMLDocument& doc,
const DICOMITKSeriesGDCMReader* reader)
const;
151 tinyxml2::XMLElement* CreateConfigStringFromReader(tinyxml2::XMLDocument& doc,
const ThreeDnTDICOMSeriesReader* reader)
const;
152 tinyxml2::XMLElement* CreateConfigStringFromReader(tinyxml2::XMLDocument& doc,
const ClassicDICOMSeriesReader* reader)
const;
154 tinyxml2::XMLElement* CreateConfigStringFromDICOMDatasetSorter(tinyxml2::XMLDocument& doc,
const DICOMTagBasedSorter* sorter)
const;
156 tinyxml2::XMLElement* CreateConfigStringFromDICOMTag(tinyxml2::XMLDocument& doc,
const DICOMTag& tag)
const;
158 tinyxml2::XMLElement* CreateDICOMFileReaderTag(tinyxml2::XMLDocument& doc,
const DICOMFileReader* reader)
const;
160 std::string toHexString(
unsigned int i)
const;
163 bool QueryBooleanAttribute(
const tinyxml2::XMLElement* element,
const char* attributeName,
bool defaultValue)
const;
Sorting and grouping like mitk::DicomSeriesReader until 2013.
Interface for DICOM readers that produce mitk::Images.
Flexible reader based on itk::ImageSeriesReader and GDCM, for single-slice modalities like CT,...
Too-simple factory to create DICOMFileReaders.
~DICOMReaderConfigurator() override
DICOMFileReader::Pointer CreateFromConfigFile(const std::string &filename) const
Create a DICOMFileReader from an XML configuration file.
DICOMFileReader::Pointer CreateFromUTF8ConfigString(const std::string &xmlContents) const
Create a DICOMFileReader from an XML configuration string (UTF-8 encoded).
DICOMReaderConfigurator()
static std::string GetConfigStringFromModuleResource(const std::string &resourcePath)
Retrieve a configuration string from a compiled-in module resource.
std::string CreateConfigStringFromReader(DICOMFileReader::ConstPointer reader) const
Serialize a DICOMFileReader's configuration to an XML string.
mitkClassMacroItkParent(DICOMReaderConfigurator, itk::LightObject)
Sort DICOM datasets based on configurable tags.
Representation of a DICOM tag.
Extends DICOMITKSeriesGDCMReader by sorting/grouping into 3D+t image blocks.
Find image slices visible on a given plane.