Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkVtkImageReader.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 VtkImageReader_H_HEADER_INCLUDED
18 #define VtkImageReader_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 image files in vtk file format
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:
51 
52  ~VtkImageReader();
53 
54  virtual void GenerateData() override;
55 
56  //##Description
57  //## @brief Time when Header was last read
58  // itk::TimeStamp m_ReadHeaderTime;
59 
60  protected:
61  std::string m_FileName;
62 
63  std::string m_FilePrefix;
64 
65  std::string m_FilePattern;
66  };
67 
68 } // namespace mitk
69 
70 #endif /* VtkImageReader_H_HEADER_INCLUDED */
Superclass of all classes generating Images (instances of class Image) as output. ...
#define MITKLEGACYIO_EXPORT
Reader to read image files in vtk file format.
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define DEPRECATED(func)
Definition: mitkCommon.h:183
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface class of readers that read from files.