Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkItkImageFileReader.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 mitkItkImageFileReader_h
14 #define mitkItkImageFileReader_h
15 
16 #include "mitkFileReader.h"
17 #include "mitkImageSource.h"
18 #include <MitkLegacyIOExports.h>
19 
20 namespace mitk
21 {
22  //##Documentation
23  //## @brief Reader to read file formats supported by itk
24  //## @ingroup MitkLegacyIOModule
25  //## @deprecatedSince{2014_10} Use mitk::IOUtils or mitk::FileReaderRegistry instead.
27  {
28  public:
30 
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34  itkSetStringMacro(FileName);
35  itkGetStringMacro(FileName);
36 
37  itkSetStringMacro(FilePrefix);
38  itkGetStringMacro(FilePrefix);
39 
40  itkSetStringMacro(FilePattern);
41  itkGetStringMacro(FilePattern);
42 
43  static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern);
44 
45  protected:
46  void GenerateData() override;
47 
49 
50  ~ItkImageFileReader() override;
51 
52  std::string m_FileName;
53 
54  std::string m_FilePrefix;
55 
56  std::string m_FilePattern;
57  };
58 
59 } // namespace mitk
60 
61 #endif
mitk::ImageSource
Superclass of all classes generating Images (instances of class Image) as output.
Definition: mitkImageSource.h:36
mitk::ItkImageFileReader::m_FileName
std::string m_FileName
Definition: mitkItkImageFileReader.h:52
mitk::ItkImageFileReader::m_FilePattern
std::string m_FilePattern
Definition: mitkItkImageFileReader.h:56
mitk::ItkImageFileReader
Reader to read file formats supported by itk.
Definition: mitkItkImageFileReader.h:26
mitkFileReader.h
MitkLegacyIOExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::FileReader
Interface class of readers that read from files.
Definition: mitkFileReader.h:25
MITKLEGACYIO_EXPORT
#define MITKLEGACYIO_EXPORT
Definition: MitkLegacyIOExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ItkImageFileReader::m_FilePrefix
std::string m_FilePrefix
Definition: mitkItkImageFileReader.h:54
mitkImageSource.h