00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 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 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 COREEXTOBJECTFACTORY_H_INCLUDED 00019 #define COREEXTOBJECTFACTORY_H_INCLUDED 00020 00021 #include "mitkCoreObjectFactoryBase.h" 00022 #include "MitkExtExports.h" 00023 00024 namespace mitk { 00025 00026 class MitkExt_EXPORT CoreExtObjectFactory : public CoreObjectFactoryBase 00027 { 00028 public: 00029 mitkClassMacro(CoreExtObjectFactory,CoreObjectFactoryBase); 00030 itkNewMacro(CoreExtObjectFactory); 00031 virtual Mapper::Pointer CreateMapper(mitk::DataNode* node, MapperSlotId slotId); 00032 virtual void SetDefaultProperties(mitk::DataNode* node); 00033 virtual const char* GetFileExtensions(); 00034 virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap(); 00035 virtual const char* GetSaveFileExtensions(); 00036 virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap(); 00037 void RegisterIOFactories(); 00038 protected: 00039 CoreExtObjectFactory(); 00040 void CreateFileExtensionsMap(); 00041 MultimapType m_FileExtensionsMap; 00042 MultimapType m_SaveFileExtensionsMap; 00043 }; 00044 00045 } 00046 // global declaration for simple call by 00047 // applications 00048 void MitkExt_EXPORT RegisterCoreExtObjectFactory(); 00049 00050 #endif 00051