Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkSTLFileReader.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 #ifndef mitkSTLFileReader_h
13 #define mitkSTLFileReader_h
14 
15 #include "mitkSurfaceSource.h"
16 #include <MitkLegacyIOExports.h>
17 
18 namespace mitk
19 {
20  //##Documentation
21  //## @brief Reader to read files in stl-format
22  //## @ingroup MitkLegacyIOModule
23  //## @deprecatedSince{2014_10} Use mitk::IOUtils or mitk::FileReaderRegistry instead.
25  {
26  public:
28 
30  itkFactorylessNewMacro(Self);
31  itkCloneMacro(Self);
32  itkSetStringMacro(FileName);
33  itkGetStringMacro(FileName);
34 
35  itkSetStringMacro(FilePrefix);
36  itkGetStringMacro(FilePrefix);
37 
38  itkSetStringMacro(FilePattern);
39  itkGetStringMacro(FilePattern);
40 
41  static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern);
42 
43  protected:
44  void GenerateData() override;
45 
46  STLFileReader();
47 
48  ~STLFileReader() override;
49 
50  std::string m_FileName, m_FilePrefix, m_FilePattern;
51  };
52 
53 } // namespace mitk
54 
55 #endif
mitk::STLFileReader
Reader to read files in stl-format.
Definition: mitkSTLFileReader.h:24
mitkSurfaceSource.h
MitkLegacyIOExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::SurfaceSource
Superclass of all classes generating surfaces (instances of class Surface) as output.
Definition: mitkSurfaceSource.h:33
MITKLEGACYIO_EXPORT
#define MITKLEGACYIO_EXPORT
Definition: MitkLegacyIOExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::STLFileReader::m_FilePrefix
std::string m_FilePrefix
Definition: mitkSTLFileReader.h:50