Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 class TiXmlElement;
20 
21 namespace mitk
22 {
23  class Geometry3D;
24 
38  {
39  public:
41  ~PointSetWriterService() override;
42 
44  void Write() override;
45 
46  private:
48 
49  mitk::PointSetWriterService *Clone() const override;
50 
51  template <typename T>
52  std::string ConvertToString(T value);
53 
54  TiXmlElement *ToXML(const mitk::PointSet *pointSet);
55 
56  static const std::string XML_POINT_SET;
57  static const std::string XML_TIME_SERIES;
58  static const std::string XML_TIME_SERIES_ID;
59  static const std::string XML_POINT_SET_FILE;
60  static const std::string XML_FILE_VERSION;
61  static const std::string XML_POINT;
62  static const std::string XML_SPEC;
63  static const std::string XML_ID;
64  static const std::string XML_X;
65  static const std::string XML_Y;
66  static const std::string XML_Z;
67  static const std::string VERSION_STRING;
68  };
69 }
70 
71 #endif
void Write() override=0
Write the base data to the specified location or output stream.
DataCollection - Class to facilitate loading/accessing structured data.
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:75
Base class for writing mitk::BaseData objects to files or streams.