Medical Imaging Interaction Toolkit  2016.11.0
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,
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 NAVIGATIONTOOLWRITER_H_INCLUDED
18 #define NAVIGATIONTOOLWRITER_H_INCLUDED
19 
20 //itk headers
21 #include <itkObjectFactory.h>
22 
23 //mitk headers
24 #include <mitkCommon.h>
25 #include "mitkNavigationTool.h"
27 #include <MitkIGTExports.h>
28 
29 
30 namespace mitk
31 {
39  class MITKIGT_EXPORT NavigationToolWriter : public itk::Object
40  {
42 
43  public:
45  itkFactorylessNewMacro(Self)
46  itkCloneMacro(Self)
47 
55  bool DoWrite(std::string FileName,mitk::NavigationTool::Pointer Tool);
56 
57  itkGetMacro(ErrorMessage,std::string);
58 
59  protected:
61  ~NavigationToolWriter();
63  mitk::DataNode::Pointer ConvertToDataNode(mitk::NavigationTool::Pointer Tool);
64  std::string GetFileWithoutPath(std::string FileWithPath);
65  std::string ConvertPointSetToString(mitk::PointSet::Pointer pointSet);
66  std::string ConvertPointToString(mitk::Point3D point);
67  std::string ConvertQuaternionToString(mitk::Quaternion quat);
68  };
69 } // namespace mitk
70 #endif //NAVIGATIONTOOLWRITER
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
An object of this class represents a navigation tool in the view of the software. A few informations ...
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...
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
vnl_quaternion< ScalarType > Quaternion
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66