Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 ItkImageFileReader_H_HEADER_INCLUDED
14 #define ItkImageFileReader_H_HEADER_INCLUDED
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) itkCloneMacro(Self)
33 
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 /* ItkImageFileReader_H_HEADER_INCLUDED */
Superclass of all classes generating Images (instances of class Image) as output. ...
#define MITKLEGACYIO_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Interface class of readers that read from files.
Reader to read file formats supported by itk.