Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 mitkPointSetReaderService_h
14 #define mitkPointSetReaderService_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 
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
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
itk::SmartPointer< Self >
mitk::PointSetReaderService::~PointSetReaderService
~PointSetReaderService() override
mitkPointSet.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PointSetReaderService::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
mitk::PointSetReaderService
Definition: mitkPointSetReaderService.h:41
mitkAbstractFileReader.h
mitk::PointSetReaderService::PointSetReaderService
PointSetReaderService()
tinyxml2
Definition: mitkXMLSerializable.h:20
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.