Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDICOMFilenameSorter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkDICOMFilenameSorter_h
18 #define mitkDICOMFilenameSorter_h
19 
20 #include "mitkDICOMDatasetSorter.h"
21 
22 namespace mitk
23 {
24 
30 {
31  public:
32 
34  itkNewMacro( DICOMFilenameSorter )
35 
36  virtual DICOMTagList GetTagsOfInterest() override;
37 
38  virtual void Sort() override;
39 
40  virtual void PrintConfiguration(std::ostream& os, const std::string& indent = "") const override;
41 
42  virtual bool operator==(const DICOMDatasetSorter& other) const override;
43 
44  protected:
45 
46  struct FilenameSort
47  {
48  bool operator() (const mitk::DICOMDatasetAccess* left, const mitk::DICOMDatasetAccess* right);
49  };
50 
52  virtual ~DICOMFilenameSorter();
53 
56 };
57 
58 }
59 
60 #endif
virtual bool operator==(const DICOMDatasetSorter &other) const override
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:64
virtual void PrintConfiguration(std::ostream &os, const std::string &indent="") const override
Print configuration details into stream.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Sort() override
Sort input datasets into one or multiple outputs.
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
DICOMFilenameSorter & operator=(const DICOMFilenameSorter &other)
mitkClassMacro(DICOMFilenameSorter, DICOMDatasetSorter) static Pointer New()
virtual DICOMTagList GetTagsOfInterest() override
sort files based on filename (last resort).
bool operator()(const mitk::DICOMDatasetAccess *left, const mitk::DICOMDatasetAccess *right)