Medical Imaging Interaction Toolkit  2023.04.00
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 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 
26 namespace mitk
27 {
35  class MITKIGT_EXPORT NavigationToolWriter : public itk::Object
36  {
38 
39  public:
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
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
itk::SmartPointer< Self >
mitk::Tool
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:83
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::NavigationToolWriter::m_ErrorMessage
std::string m_ErrorMessage
Definition: mitkNavigationToolWriter.h:58
mitk::Point< ScalarType, 3 >
mitkCommon.h
mitkNavigationToolStorageSerializer.h
mitk::Quaternion
vnl_quaternion< ScalarType > Quaternion
Definition: mitkQuaternion.h:21
mitk::NavigationToolWriter
This class offers methods to write objects of the class navigation tool permanently to the harddisk....
Definition: mitkNavigationToolWriter.h:35
mitk::NavigationToolStorageSerializer
This class offers methods to save an object of the class NavigationToolStorage to the harddisc.
Definition: mitkNavigationToolStorageSerializer.h:31
mitkNavigationTool.h