00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2010-04-16 16:53:19 +0200 (Fr, 16 Apr 2010) $ 00006 Version: $Revision: 13129 $ 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 PLANARFIGUREOBJECTFACTORY_H_INCLUDED 00019 #define PLANARFIGUREOBJECTFACTORY_H_INCLUDED 00020 00021 #include "mitkCoreObjectFactoryBase.h" 00022 #include "PlanarFigureExports.h" 00023 00024 namespace mitk { 00025 00026 class PlanarFigure_EXPORT PlanarFigureObjectFactory : public CoreObjectFactoryBase 00027 { 00028 public: 00029 00030 mitkClassMacro(PlanarFigureObjectFactory,CoreObjectFactoryBase); 00031 itkNewMacro(PlanarFigureObjectFactory); 00032 00033 virtual Mapper::Pointer CreateMapper(mitk::DataNode* node, MapperSlotId slotId); 00034 00035 virtual void SetDefaultProperties(mitk::DataNode* node); 00036 00037 virtual const char* GetFileExtensions(); 00038 00039 virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap(); 00040 00041 virtual const char* GetSaveFileExtensions(); 00042 00043 virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap(); 00044 00045 void RegisterIOFactories(); 00046 00047 protected: 00048 PlanarFigureObjectFactory(); 00049 void CreateFileExtensionsMap(); 00050 MultimapType m_FileExtensionsMap; 00051 MultimapType m_SaveFileExtensionsMap; 00052 }; 00053 00054 } 00055 // global declaration for simple call by 00056 // applications 00057 void PlanarFigure_EXPORT RegisterPlanarFigureObjectFactory(); 00058 00059 #endif // PLANARFIGUREOBJECTFACTORY_H_INCLUDED