Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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  std::vector<itk::SmartPointer<BaseData>> Read() override;
46 
47  private:
49 
50  mitk::BaseGeometry::Pointer ReadGeometry(TiXmlElement *parentElement);
51 
52  mitk::PointSet::Pointer ReadPoints(mitk::PointSet::Pointer newPointSet,
53  TiXmlElement *currentTimeSeries,
54  unsigned int currentTimeStep);
55 
56  PointSetReaderService *Clone() const override;
57  };
58 }
59 
60 #endif
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
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.