00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-08-11 15:15:02 +0200 (Di, 11 Aug 2009) $ 00006 Version: $Revision $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef NAVIGATIONTOOLWRITER_H_INCLUDED 00019 #define NAVIGATIONTOOLWRITER_H_INCLUDED 00020 00021 //itk headers 00022 #include <itkObjectFactory.h> 00023 00024 //mitk headers 00025 #include <mitkCommon.h> 00026 #include "mitkNavigationTool.h" 00027 #include "mitkNavigationToolStorageSerializer.h" 00028 #include <MitkIGTExports.h> 00029 00030 00031 namespace mitk 00032 { 00040 class MitkIGT_EXPORT NavigationToolWriter : public itk::Object 00041 { 00042 friend class mitk::NavigationToolStorageSerializer; 00043 00044 public: 00045 mitkClassMacro(NavigationToolWriter,itk::Object); 00046 itkNewMacro(Self); 00047 00055 bool DoWrite(std::string FileName,mitk::NavigationTool::Pointer Tool); 00056 00057 itkGetMacro(ErrorMessage,std::string); 00058 00059 protected: 00060 NavigationToolWriter(); 00061 ~NavigationToolWriter(); 00062 std::string m_ErrorMessage; 00063 mitk::DataNode::Pointer ConvertToDataNode(mitk::NavigationTool::Pointer Tool); 00064 std::string GetFileWithoutPath(std::string FileWithPath); 00065 }; 00066 } // namespace mitk 00067 #endif //NAVIGATIONTOOLWRITER