Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMultilabelObjectFactory.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 #ifndef MULTILABELOBJECTFACTORY_H_INCLUDED
18 #define MULTILABELOBJECTFACTORY_H_INCLUDED
19 
21 
22 #include <mitkAbstractFileIO.h>
23 
24 namespace mitk
25 {
27  {
28  public:
30  itkFactorylessNewMacro(Self) itkCloneMacro(Self) virtual Mapper::Pointer
31  CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override;
32  virtual void SetDefaultProperties(mitk::DataNode *node) override;
33  virtual const char *GetFileExtensions() override;
35  virtual const char *GetSaveFileExtensions() override;
37 
38  protected:
44 
45  private:
46  itk::ObjectFactoryBase::Pointer m_LabelSetImageIOFactory;
47  itk::ObjectFactoryBase::Pointer m_LabelSetImageWriterFactory;
48 
49  std::vector<mitk::AbstractFileIO *> m_FileIOs;
50  };
51 }
52 
53 #endif
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
virtual const char * GetFileExtensions() override
virtual void SetDefaultProperties(mitk::DataNode *node) override
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
virtual const char * GetSaveFileExtensions() 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
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
mitkClassMacro(MultilabelObjectFactory, CoreObjectFactoryBase)