Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsObjectFactory.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef MITKCONNECTOMICSOBJECTFACTORY_H
19 #define MITKCONNECTOMICSOBJECTFACTORY_H
20 
21 #include "mitkCoreObjectFactory.h"
22 
23 namespace mitk {
24 
26 {
27  public:
29  itkFactorylessNewMacro(Self)
30  itkCloneMacro(Self)
31 
33 
34  virtual Mapper::Pointer CreateMapper(mitk::DataNode* node, MapperSlotId slotId) override;
35 
36  virtual void SetDefaultProperties(mitk::DataNode* node) override;
37 
38  virtual const char* GetFileExtensions() override;
39 
41 
42  virtual const char* GetSaveFileExtensions() override;
43 
45 
46  protected:
48  private:
49  void CreateFileExtensionsMap();
50  std::string m_ExternalFileExtensions;
51  std::string m_InternalFileExtensions;
52  std::string m_SaveFileExtensions;
53  MultimapType m_FileExtensionsMap;
54  MultimapType m_SaveFileExtensionsMap;
55 
56  itk::ObjectFactoryBase::Pointer m_ConnectomicsNetworkIOFactory;
57  itk::ObjectFactoryBase::Pointer m_ConnectomicsNetworkWriterFactory;
58 };
59 
60 }
61 
62 #endif
virtual const char * GetFileExtensions() override
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
virtual const char * GetSaveFileExtensions() override
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
mitkClassMacro(ConnectomicsObjectFactory, CoreObjectFactoryBase) static Pointer New()
virtual void SetDefaultProperties(mitk::DataNode *node) override
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
unsigned int MapperSlotId
Definition: mitkCommon.h:37
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66