Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkDICOMFileReaderSelector.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkDICOMFileReaderSelector_h
14 #define mitkDICOMFileReaderSelector_h
15 
16 #include "mitkDICOMFileReader.h"
17 
18 #include <usModuleResource.h>
19 
20 namespace mitk
21 {
22 
47 class MITKDICOM_EXPORT DICOMFileReaderSelector : public itk::LightObject
48 {
49  public:
50 
51  typedef std::list<DICOMFileReader::Pointer> ReaderList;
52 
54  itkNewMacro( DICOMFileReaderSelector );
55 
58  void AddConfig(const std::string& xmlDescription);
61  void AddConfigFile(const std::string& filename);
64  void AddConfigFromResource(us::ModuleResource& resource);
65 
67  void AddFileReaderCanditate(DICOMFileReader::Pointer reader);
68 
75  void LoadBuiltIn3DConfigs();
76 
83  void LoadBuiltIn3DnTConfigs();
84 
88  ReaderList GetAllConfiguredReaders() const;
89 
91  void SetInputFiles(StringList filenames);
93  const StringList& GetInputFiles() const;
94 
96  DICOMFileReader::Pointer GetFirstReaderWithMinimumNumberOfOutputImages();
97 
98  protected:
99 
101  ~DICOMFileReaderSelector() override;
102 
103  void AddConfigsFromResources(const std::string& path);
104  void AddConfigFromResource(const std::string& resourcename);
105 
106  private:
107 
108  StringList m_PossibleConfigurations;
109  StringList m_InputFilenames;
110  ReaderList m_Readers;
111 
112  };
113 
114 } // namespace
115 
116 #endif
mitk::DICOMFileReaderSelector::ReaderList
std::list< DICOMFileReader::Pointer > ReaderList
Definition: mitkDICOMFileReaderSelector.h:51
mitk::DICOMFileReaderSelector
Simple best-reader selection.
Definition: mitkDICOMFileReaderSelector.h:47
mitkDICOMFileReader.h
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
us::ModuleResource
Definition: usModuleResource.h:55
usModuleResource.h
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitk::StringList
std::vector< std::string > StringList
Definition: mitkDICOMEnums.h:22