MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationToolWriter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkNavigationToolWriter_h
14#define mitkNavigationToolWriter_h
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
26namespace mitk
27{
35 class MITKIGT_EXPORT NavigationToolWriter : public itk::Object
36 {
38
39 public:
43
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
This class offers methods to save an object of the class NavigationToolStorage to the harddisc.
This class offers methods to write objects of the class navigation tool permanently to the harddisk....
mitkClassMacroItkParent(NavigationToolWriter, itk::Object)
itkGetMacro(ErrorMessage, std::string)
IGT Exceptions.