Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkNavigationToolWriter.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 NAVIGATIONTOOLWRITER_H_INCLUDED
14 #define NAVIGATIONTOOLWRITER_H_INCLUDED
15 
16 //itk headers
17 #include <itkObjectFactory.h>
18 
19 //mitk headers
20 #include <mitkCommon.h>
21 #include "mitkNavigationTool.h"
23 #include <MitkIGTExports.h>
24 
25 
26 namespace mitk
27 {
35  class MITKIGT_EXPORT NavigationToolWriter : public itk::Object
36  {
38 
39  public:
41  itkFactorylessNewMacro(Self)
42  itkCloneMacro(Self)
43 
44 
51  bool DoWrite(std::string FileName,mitk::NavigationTool::Pointer Tool);
52 
53  itkGetMacro(ErrorMessage,std::string);
54 
55  protected:
57  ~NavigationToolWriter() override;
58  std::string m_ErrorMessage;
59  mitk::DataNode::Pointer ConvertToDataNode(mitk::NavigationTool::Pointer Tool);
60  std::string GetFileWithoutPath(std::string FileWithPath);
61  std::string ConvertPointSetToString(mitk::PointSet::Pointer pointSet);
62  std::string ConvertPointToString(mitk::Point3D point);
63  std::string ConvertQuaternionToString(mitk::Quaternion quat);
64  };
65 } // namespace mitk
66 #endif //NAVIGATIONTOOLWRITER
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:88
DataCollection - Class to facilitate loading/accessing structured data.
This class offers methods to write objects of the class navigation tool permanently to the harddisk...
This class offers methods to save an object of the class NavigationToolStorage to the harddisc...
#define MITKIGT_EXPORT
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
vnl_quaternion< ScalarType > Quaternion