Medical Imaging Interaction Toolkit  2022.10.99-efe2ad43
Medical Imaging Interaction Toolkit
mitkIFileReader.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 IFileReader_H_HEADER_INCLUDED_C1E7E521
14 #define IFileReader_H_HEADER_INCLUDED_C1E7E521
15 
16 #include <mitkDataStorage.h>
17 #include <mitkIFileIO.h>
18 
19 #include <mitkServiceInterface.h>
20 
21 namespace mitk
22 {
23  class BaseData;
24  class PropertyList;
25 }
26 
27 namespace itk
28 {
29  template <class T>
30  class SmartPointer;
31 }
32 
33 namespace mitk
34 {
62  {
63  ~IFileReader() override;
64 
69  virtual void SetInput(const std::string &location) = 0;
70 
80  virtual void SetInput(const std::string &location, std::istream *is) = 0;
81 
86  virtual std::string GetInputLocation() const = 0;
87 
92  virtual std::istream *GetInputStream() const = 0;
93 
105  virtual std::vector<itk::SmartPointer<BaseData>> Read() = 0;
106 
120  virtual DataStorage::SetOfObjects::Pointer Read(mitk::DataStorage &ds) = 0;
121 
125  virtual std::vector< std::string > GetReadFiles() = 0;
126 
143  virtual void SetProperties(const PropertyList* properties) = 0;
144 
145  protected:
146 
149  virtual const PropertyList* GetProperties() const = 0;
150  };
151 
152 } // namespace mitk
153 
154 MITK_DECLARE_SERVICE_INTERFACE(mitk::IFileReader, "org.mitk.IFileReader")
155 
156 #endif /* IFileReader_H_HEADER_INCLUDED_C1E7E521 */
mitk::DICOMIOHelper::SetProperties
MITKDICOM_EXPORT void SetProperties(BaseData *image, const FindingsListVectorType &findings)
mitkServiceInterface.h
mitkDataStorage.h
itk::SmartPointer
Definition: mitkIFileReader.h:30
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::IFileReader
The common interface for all MITK file readers.
Definition: mitkIFileReader.h:61
mitk::IFileIO
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:35
mitk::PropertyList
Key-value list holding instances of BaseProperty.
Definition: mitkPropertyList.h:64
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkIFileIO.h
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30
MITK_DECLARE_SERVICE_INTERFACE
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Definition: mitkServiceInterface.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15