Medical Imaging Interaction Toolkit  2021.02.99-c051ab3b
Medical Imaging Interaction Toolkit
mitkPointSetWriterService.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_WRITER_SERVICE__H_
14 #define _MITK_POINT_SET_WRITER_SERVICE__H_
15 
16 #include <mitkAbstractFileWriter.h>
17 #include <mitkPointSet.h>
18 
19 namespace tinyxml2
20 {
21  class XMLDocument;
22  class XMLElement;
23 }
24 
25 namespace mitk
26 {
27  class Geometry3D;
28 
42  {
43  public:
45  ~PointSetWriterService() override;
46 
47  using AbstractFileWriter::Write;
48  void Write() override;
49 
50  private:
52 
53  mitk::PointSetWriterService *Clone() const override;
54 
55  template <typename T>
56  std::string ConvertToString(T value);
57 
58  tinyxml2::XMLElement *ToXML(tinyxml2::XMLDocument &doc, const mitk::PointSet *pointSet);
59 
60  static const std::string XML_POINT_SET;
61  static const std::string XML_TIME_SERIES;
62  static const std::string XML_TIME_SERIES_ID;
63  static const std::string XML_POINT_SET_FILE;
64  static const std::string XML_FILE_VERSION;
65  static const std::string XML_POINT;
66  static const std::string XML_SPEC;
67  static const std::string XML_ID;
68  static const std::string XML_X;
69  static const std::string XML_Y;
70  static const std::string XML_Z;
71  static const std::string VERSION_STRING;
72  };
73 }
74 
75 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Data structure which stores a set of points.
Definition: mitkPointSet.h:71
Base class for writing mitk::BaseData objects to files or streams.