Medical Imaging Interaction Toolkit  2021.02.99-9e0e53e2
Medical Imaging Interaction Toolkit
mitkPointSetReaderService.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_POINT_SET_READER_SERVICE__H_
14 #define _MITK_POINT_SET_READER_SERVICE__H_
15 
16 // MITK
17 #include <mitkAbstractFileReader.h>
18 #include <mitkPointSet.h>
19 
20 namespace tinyxml2
21 {
22  class XMLElement;
23 }
24 
25 namespace mitk
26 {
42  {
43  public:
45  ~PointSetReaderService() override;
46 
47  using AbstractFileReader::Read;
48 
49  protected:
50  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
51 
52  private:
54 
55  mitk::BaseGeometry::Pointer ReadGeometry(tinyxml2::XMLElement *parentElement);
56 
57  mitk::PointSet::Pointer ReadPoints(mitk::PointSet::Pointer newPointSet,
58  tinyxml2::XMLElement *currentTimeSeries,
59  unsigned int currentTimeStep);
60 
61  PointSetReaderService *Clone() const override;
62  };
63 }
64 
65 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Base class for creating mitk::BaseData objects from files or streams.