Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 
42  {
43  public:
45  ~PointSetWriterService() override;
46 
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
mitkAbstractFileWriter.h
mitk::PointSetWriterService
Definition: mitkPointSetWriterService.h:41
mitk::AbstractFileWriter::Write
void Write() override=0
Write the base data to the specified location or output stream.
mitk::AbstractFileWriter
Base class for writing mitk::BaseData objects to files or streams.
Definition: mitkAbstractFileWriter.h:50
mitkPointSet.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PointSetWriterService::PointSetWriterService
PointSetWriterService()
mitk::PointSetWriterService::~PointSetWriterService
~PointSetWriterService() override
mitk::PointSetWriterService::Write
void Write() override
Write the base data to the specified location or output stream.
tinyxml2
Definition: mitkContourModelReader.h:25
mitk::PointSet
Data structure which stores a set of points.
Definition: mitkPointSet.h:71