Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkVtiFileReader.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 mitkVtiFileReader_h
14 #define mitkVtiFileReader_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 image files in vtk file format
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:
47 
48  ~VtiFileReader() override;
49 
50  void GenerateData() override;
51 
52  //##Description
53  //## @brief Time when Header was last read
54  // itk::TimeStamp m_ReadHeaderTime;
55 
56  protected:
57  std::string m_FileName;
58 
59  std::string m_FilePrefix;
60 
61  std::string m_FilePattern;
62  };
63 
64 } // namespace mitk
65 
66 #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 image files in vtk file format.
void GenerateData() override
~VtiFileReader() override
static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern)
mitkClassMacro(VtiFileReader, FileReader)
#define DEPRECATED(func)
Definition: mitkCommon.h:175
Find image slices visible on a given plane.