Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
mitkContourModelReader.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 _MITK_CONTOURMODEL_READER__H_
13 #define _MITK_CONTOURMODEL_READER__H_
14 
15 // MITK
16 #include <mitkAbstractFileReader.h>
17 #include <mitkBaseData.h>
18 #include <mitkContourModel.h>
19 #include <mitkMimeType.h>
20 
21 #include <stack>
22 #include <string>
23 #include <vtkXMLParser.h>
24 
25 namespace tinyxml2
26 {
27  class XMLElement;
28 }
29 
30 namespace mitk
31 {
37  {
38  public:
40 
42 
43  ~ContourModelReader() override;
44 
45  using AbstractFileReader::Read;
46 
47  protected:
48  virtual void ReadPoints(mitk::ContourModel::Pointer newContourModel,
49  const tinyxml2::XMLElement *currentTimeSeries,
50  unsigned int currentTimeStep);
51  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
52 
53  private:
54  ContourModelReader *Clone() const override;
55 
57  };
58 }
59 
60 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Base class for creating mitk::BaseData objects from files or streams.