Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef _MITK_CONTOURMODEL_READER__H_
17 #define _MITK_CONTOURMODEL_READER__H_
18 
19 // MITK
20 #include <mitkAbstractFileReader.h>
21 #include <mitkBaseData.h>
22 #include <mitkContourModel.h>
23 #include <mitkMimeType.h>
24 
25 #include <stack>
26 #include <string>
27 #include <tinyxml.h>
28 #include <vtkXMLParser.h>
29 
30 namespace mitk
31 {
37  {
38  public:
40 
42 
43  virtual ~ContourModelReader();
44 
46  virtual std::vector<itk::SmartPointer<BaseData>> Read() override;
47 
48  protected:
49  virtual void ReadPoints(mitk::ContourModel::Pointer newContourModel,
50  TiXmlElement *currentTimeSeries,
51  unsigned int currentTimeStep);
52 
53  private:
54  ContourModelReader *Clone() const override;
55 
57  };
58 }
59 
60 #endif
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
virtual 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.