Medical Imaging Interaction Toolkit  2018.4.99-899caed2
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 class TiXmlElement;
21 
22 namespace mitk
23 {
39  {
40  public:
42  ~PointSetReaderService() override;
43 
45 
46  protected:
47  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
48 
49  private:
51 
52  mitk::BaseGeometry::Pointer ReadGeometry(TiXmlElement *parentElement);
53 
54  mitk::PointSet::Pointer ReadPoints(mitk::PointSet::Pointer newPointSet,
55  TiXmlElement *currentTimeSeries,
56  unsigned int currentTimeStep);
57 
58  PointSetReaderService *Clone() const override;
59  };
60 }
61 
62 #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.
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > DoRead() override