Medical Imaging Interaction Toolkit  2025.12.02
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 "MitkDICOMExports.h"
20 
21 namespace mitk {
22 
28 {
29 public:
31 
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 
51  bool GetOnlyRegardOwnSeries() const;
52 
53 private:
58  bool m_OnlyRegardOwnSeries = true;
59 };
60 
61 
62 class IPropertyProvider;
63 
67 
68 }
69 
70 #endif
#define MITKDICOM_EXPORT
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
IFileReader::ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
bool GetOnlyRegardOwnSeries() const
BaseDICOMReaderService(const std::string &description)
BaseDICOMReaderService(const mitk::CustomMimeType &customType, const std::string &description)
mitk::StringList GetDICOMFilesInSameDirectory() const
std::vector< itk::SmartPointer< BaseData > > DoRead() override
virtual mitk::DICOMFileReader::Pointer GetReader(const mitk::StringList &relevantFiles) const =0
The CustomMimeType class represents a custom mime-type which may be registered as a service object....
Find image slices visible on a given plane.
std::vector< std::string > StringList
std::string MITKDICOM_EXPORT GenerateNameFromDICOMProperties(const mitk::IPropertyProvider *provider)
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:46