Medical Imaging Interaction Toolkit  2026.06.00
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 mitkPointSetWriterService_h
14 #define mitkPointSetWriterService_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 
43  {
44  public:
47 
49 
56  void Write() override;
57 
58  private:
60 
61  mitk::PointSetWriterService *Clone() const override;
62 
69  template <typename T>
70  std::string ConvertToString(T value);
71 
78  tinyxml2::XMLElement *ToXML(tinyxml2::XMLDocument &doc, const mitk::PointSet *pointSet);
79 
80  static const std::string XML_POINT_SET;
81  static const std::string XML_TIME_SERIES;
82  static const std::string XML_TIME_SERIES_ID;
83  static const std::string XML_POINT_SET_FILE;
84  static const std::string XML_FILE_VERSION;
85  static const std::string XML_POINT;
86  static const std::string XML_SPEC;
87  static const std::string XML_ID;
88  static const std::string XML_X;
89  static const std::string XML_Y;
90  static const std::string XML_Z;
91  static const std::string VERSION_STRING;
92  };
93 }
94 
95 #endif
Base class for writing mitk::BaseData objects to files or streams.
void Write() override=0
Write the base data to the specified location or output stream.
void Write() override
Write the input PointSet to XML format.
Data structure which stores a set of points.
Definition: mitkPointSet.h:71
Find image slices visible on a given plane.