Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkBaseDICOMReaderService.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 MITKBASEDICOMREADERSERVICE_H
14 #define MITKBASEDICOMREADERSERVICE_H
15 
16 #include <mitkAbstractFileReader.h>
17 #include <mitkDICOMFileReader.h>
18 
19 #include "MitkDICOMReaderExports.h"
20 
21 namespace mitk {
22 
28 {
29 public:
31 
32  IFileReader::ConfidenceLevel GetConfidenceLevel() const override;
33 
34 protected:
35  BaseDICOMReaderService(const std::string& description);
36  BaseDICOMReaderService(const mitk::CustomMimeType& customType, const std::string& description);
37 
40  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
41 
45 
48  virtual mitk::DICOMFileReader::Pointer GetReader(const mitk::StringList& relevantFiles) const = 0;
49 
50  void SetOnlyRegardOwnSeries(bool);
51  bool GetOnlyRegardOwnSeries() const;
52 
53 private:
58  bool m_OnlyRegardOwnSeries = true;
59 };
60 
61 
62 class IPropertyProvider;
63 
67 
68 }
69 
70 #endif // MITKBASEDICOMREADERSERVICE_H
DICOMFilePathList GetDICOMFilesInSameDirectory(const std::string &filePath)
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
std::string MITKDICOMREADER_EXPORT GenerateNameFromDICOMProperties(const mitk::IPropertyProvider *provider)
std::vector< std::string > StringList
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
Base class for creating mitk::BaseData objects from files or streams.