Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 <tinyxml.h>
24 #include <vtkXMLParser.h>
25 
26 namespace mitk
27 {
33  {
34  public:
36 
38 
39  ~ContourModelReader() override;
40 
42  std::vector<itk::SmartPointer<BaseData>> Read() override;
43 
44  protected:
45  virtual void ReadPoints(mitk::ContourModel::Pointer newContourModel,
46  TiXmlElement *currentTimeSeries,
47  unsigned int currentTimeStep);
48 
49  private:
50  ContourModelReader *Clone() const override;
51 
53  };
54 }
55 
56 #endif
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
virtual void ReadPoints(mitk::ContourModel::Pointer newContourModel, TiXmlElement *currentTimeSeries, unsigned int currentTimeStep)
Base class for creating mitk::BaseData objects from files or streams.