Medical Imaging Interaction Toolkit  2025.12.02
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
#define MITKLEGACYIO_EXPORT
Interface class of readers that read from files.
Superclass of all classes generating Images (instances of class Image) as output.
Reader to read file formats supported by itk.
static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern)
void GenerateData() override
~ItkImageFileReader() override
mitkClassMacro(ItkImageFileReader, FileReader)
Find image slices visible on a given plane.