Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_POINT_SET_WRITER_SERVICE__H_
18 #define _MITK_POINT_SET_WRITER_SERVICE__H_
19 
20 #include <mitkAbstractFileWriter.h>
21 #include <mitkPointSet.h>
22 
23 class TiXmlElement;
24 
25 namespace mitk
26 {
27  class Geometry3D;
28 
42  {
43  public:
45  virtual ~PointSetWriterService();
46 
48  virtual void Write() override;
49 
50  private:
52 
53  virtual mitk::PointSetWriterService *Clone() const override;
54 
55  template <typename T>
56  std::string ConvertToString(T value);
57 
58  TiXmlElement *ToXML(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.
virtual void Write() override
Write the base data to the specified location or output stream.
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
virtual void Write() override=0
Write the base data to the specified location or output stream.
Base class for writing mitk::BaseData objects to files or streams.