Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkBoundingShapeObjectFactory.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 mitkBoundingShapeObjectFactory_h
18 #define mitkBoundingShapeObjectFactory_h
19 
22 
23 namespace mitk
24 {
26  {
27  public:
28  mitkClassMacro(BoundingShapeObjectFactory, CoreObjectFactoryBase) itkFactorylessNewMacro(Self) itkCloneMacro(Self)
29 
30  virtual Mapper::Pointer CreateMapper(DataNode *node, MapperSlotId slotId) override;
31  virtual void SetDefaultProperties(DataNode *node) override;
32  virtual const char *GetFileExtensions() override;
33  virtual CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override;
34  virtual const char *GetSaveFileExtensions() override;
35  virtual CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override;
36  virtual const char *GetDescription() const override;
37 
38  protected:
40  virtual ~BoundingShapeObjectFactory();
41 
42  void CreateFileExtensionsMap();
43 
44  private:
45  MultimapType m_FileExtensionsMap;
46  MultimapType m_SaveFileExtensionsMap;
47  };
48 
50 }
51 
52 #endif
#define MITKBOUNDINGSHAPE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITKBOUNDINGSHAPE_EXPORT void RegisterBoundingShapeObjectFactory()
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
unsigned int MapperSlotId
Definition: mitkCommon.h:37
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66