Medical Imaging Interaction Toolkit  2024.06.00
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 mitkContourModelReader_h
13 #define mitkContourModelReader_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 
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
mitk::ContourModelReader::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
itk::SmartPointer< Self >
mitkMimeType.h
mitk::ContourModelReader::ReadPoints
virtual void ReadPoints(mitk::ContourModel::Pointer newContourModel, const tinyxml2::XMLElement *currentTimeSeries, unsigned int currentTimeStep)
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkContourModel.h
mitk::ContourModelReader::~ContourModelReader
~ContourModelReader() override
mitkAbstractFileReader.h
mitkBaseData.h
mitk::ContourModelReader::ContourModelReader
ContourModelReader()
tinyxml2
Definition: mitkContourModelReader.h:25
us::ServiceRegistration< mitk::IFileReader >
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::ContourModelReader
Definition: mitkContourModelReader.h:36