00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-18 16:49:06 +0200 (Mo, 18 Mai 2009) $ 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 DiffusionImagingObjectFactory_H_INCLUDED 00019 #define DiffusionImagingObjectFactory_H_INCLUDED 00020 00021 #include "mitkCoreObjectFactory.h" 00022 #include "MitkDiffusionImagingExports.h" 00023 00024 namespace mitk { 00025 00026 class MitkDiffusionImaging_EXPORT DiffusionImagingObjectFactory : public CoreObjectFactoryBase 00027 { 00028 public: 00029 mitkClassMacro(DiffusionImagingObjectFactory,CoreObjectFactoryBase); 00030 itkNewMacro(DiffusionImagingObjectFactory); 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 DiffusionImagingObjectFactory(bool registerSelf = true); 00040 private: 00041 void CreateFileExtensionsMap(); 00042 std::string m_ExternalFileExtensions; 00043 std::string m_InternalFileExtensions; 00044 std::string m_SaveFileExtensions; 00045 MultimapType m_FileExtensionsMap; 00046 MultimapType m_SaveFileExtensionsMap; 00047 }; 00048 00049 } 00050 // global declaration for simple call by 00051 // applications 00052 void MitkDiffusionImaging_EXPORT RegisterDiffusionImagingObjectFactory(); 00053 00054 #endif 00055