13 #ifndef mitkDICOMTagBasedSorter_h 14 #define mitkDICOMTagBasedSorter_h 52 virtual std::string operator()(
const std::string&)
const = 0;
66 unsigned int GetPrecision()
const;
67 std::string operator()(
const std::string&)
const override;
70 unsigned int m_Precision;
87 void SetSortCriterion( DICOMSortCriterion::ConstPointer criterion );
88 DICOMSortCriterion::ConstPointer GetSortCriterion()
const;
114 void SetStrictSorting(
bool strict);
115 bool GetStrictSorting()
const;
122 void SetExpectDistanceOne(
bool strict);
123 bool GetExpectDistanceOne()
const;
129 void Sort()
override;
134 void PrintConfiguration(std::ostream& os,
const std::string& indent =
"")
const override;
140 return m_DefaultStrictSorting;
145 return m_DefaultExpectDistanceOne;
179 GroupIDToListType SplitInputGroups();
185 GroupIDToListType& SortGroups(GroupIDToListType& groups);
196 const static bool m_DefaultStrictSorting =
false;
197 const static bool m_DefaultExpectDistanceOne =
false;
static bool GetDefaultExpectDistanceOne()
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
std::map< const DICOMTag, TagValueProcessor * > TagValueProcessorMap
std::vector< DICOMTag > DICOMTagList
DICOMTagList m_DistinguishingTags
Representation of a DICOM tag.
#define MITKDICOMREADER_EXPORT
DICOMSortCriterion::ConstPointer m_SortCriterion
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, DICOMDatasetList > GroupIDToListType
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Helper struct to feed into std::sort, configured via DICOMSortCriterion.
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
TagValueProcessorMap m_TagValueProcessor
#define mitkClassMacro(className, SuperClassName)
virtual ~TagValueProcessor()
DICOMSortCriterion::ConstPointer m_SortCriterion
Cuts a number after configured number of decimal places. An instance of this class can be used to avo...
Sort DICOM datasets based on configurable tags.
Processes tag values before they are compared. These classes could do some kind of normalization such...
static bool GetDefaultStrictSorting()