Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef ItkImageFileReader_H_HEADER_INCLUDED
18 #define ItkImageFileReader_H_HEADER_INCLUDED
19 
20 #include "mitkFileReader.h"
21 #include "mitkImageSource.h"
22 #include <MitkLegacyIOExports.h>
23 
24 namespace mitk
25 {
26  //##Documentation
27  //## @brief Reader to read file formats supported by itk
28  //## @ingroup MitkLegacyIOModule
29  //## @deprecatedSince{2014_10} Use mitk::IOUtils or mitk::FileReaderRegistry instead.
31  {
32  public:
34 
36  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
37 
38  itkSetStringMacro(FileName);
39  itkGetStringMacro(FileName);
40 
41  itkSetStringMacro(FilePrefix);
42  itkGetStringMacro(FilePrefix);
43 
44  itkSetStringMacro(FilePattern);
45  itkGetStringMacro(FilePattern);
46 
47  static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern);
48 
49  protected:
50  virtual void GenerateData() override;
51 
53 
55 
56  std::string m_FileName;
57 
58  std::string m_FilePrefix;
59 
60  std::string m_FilePattern;
61  };
62 
63 } // namespace mitk
64 
65 #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.
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface class of readers that read from files.
Reader to read file formats supported by itk.