Medical Imaging Interaction Toolkit  2021.02.99-9e0e53e2
Medical Imaging Interaction Toolkit
mitkSurfaceStlIO.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 _MITK_SURFACE_STL_IO_H_
14 #define _MITK_SURFACE_STL_IO_H_
15 
16 #include "mitkSurfaceVtkIO.h"
17 
18 namespace mitk
19 {
21  {
22  public:
23  SurfaceStlIO();
24 
25  // -------------- AbstractFileReader -------------
26 
28 
29  // -------------- AbstractFileWriter -------------
30 
31  void Write() override;
32 
33  protected:
34  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
35 
36  private:
37  SurfaceStlIO *IOClone() const override;
38 
39  // vtkSTLReader crashes with this option
40  // static std::string OPTION_MERGE_POINTS();
41 
42  static std::string OPTION_TAG_SOLIDS();
43  static std::string OPTION_CLEAN();
44  };
45 }
46 
47 #endif //_MITK_SURFACE_STL_IO_H_
DataCollection - Class to facilitate loading/accessing structured data.
void Write() override
Write the base data to the specified location or output stream.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.