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 http://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 NAVIGATIONTOOLSTORAGE_H_INCLUDED 00019 #define NAVIGATIONTOOLSTORAGE_H_INCLUDED 00020 00021 //itk headers 00022 #include <itkObjectFactory.h> 00023 00024 //mitk headers 00025 #include <mitkCommon.h> 00026 #include <MitkIGTExports.h> 00027 #include "mitkNavigationTool.h" 00028 00029 namespace mitk { 00038 class MitkIGT_EXPORT NavigationToolStorage : public itk::Object 00039 { 00040 public: 00041 mitkClassMacro(NavigationToolStorage,itk::Object); 00042 itkNewMacro(Self); 00043 00051 bool AddTool(mitk::NavigationTool::Pointer tool); 00052 00058 mitk::NavigationTool::Pointer GetTool(int number); 00059 00065 mitk::NavigationTool::Pointer GetTool(std::string identifier); 00066 00067 00071 bool DeleteTool(int number); 00072 00076 int GetToolCount(); 00077 00081 bool isEmpty(); 00082 00083 protected: 00084 NavigationToolStorage(); 00085 ~NavigationToolStorage(); 00086 00087 std::vector<mitk::NavigationTool::Pointer> m_ToolCollection; 00088 00089 }; 00090 } // namespace mitk 00091 #endif //NAVIGATIONTOOLSTORAGE