Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
mitkGizmoObjectFactory.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef GizmoObjectFactor_h
14 #define GizmoObjectFactor_h
15 
16 // MITK includes
17 #include <mitkCoreObjectFactory.h>
18 
19 // Export definitions
20 #include <MitkGizmoExports.h>
21 
22 namespace mitk
23 {
24  /*
25  \brief Registers mappers and assigns default properties for mitk::Gizmo.
26 
27  This class is still required by MITK to register custom mappers.
28  The base class interface requires also methods that describe file
29  reader/writer extensions, but this is already deprecated. We do
30  not implement those methods but use the new micro-service registration
31  via GizmoActivator.
32  */
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40  // Create a mapper for given node
41  mitk::Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override;
42 
43  // Assign default properties to given node
44  void SetDefaultProperties(mitk::DataNode *node) override;
45 
46  // Deprecated but required!
47  const char *GetFileExtensions() override { return ""; }
48  // Deprecated but required!
50  {
52  }
53 
54  // Deprecated but required!
55  const char *GetSaveFileExtensions() override { return ""; }
56  // Deprecated but required!
58  {
60  }
61  };
62 }
63 
64 #endif
#define MITKGIZMO_EXPORT
mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
const char * GetFileExtensions() override
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
const char * GetSaveFileExtensions() override
unsigned int MapperSlotId
Definition: mitkCommon.h:33
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57