Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 mitkGizmoObjectFactory_h
14 #define mitkGizmoObjectFactory_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  std::string GetFileExtensions() override { return ""; }
48  // Deprecated but required!
50  {
52  }
53 
54  // Deprecated but required!
55  std::string GetSaveFileExtensions() override { return ""; }
56  // Deprecated but required!
58  {
60  }
61  };
62 }
63 
64 #endif
mitk::GizmoObjectFactory::GetSaveFileExtensionsMap
mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
Definition: mitkGizmoObjectFactory.h:57
mitk::GizmoObjectFactory
Definition: mitkGizmoObjectFactory.h:33
MitkGizmoExports.h
itk::SmartPointer< Self >
mitkCoreObjectFactory.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::GizmoObjectFactory::GetFileExtensionsMap
mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
Definition: mitkGizmoObjectFactory.h:49
mitk::GizmoObjectFactory::GetSaveFileExtensions
std::string GetSaveFileExtensions() override
Definition: mitkGizmoObjectFactory.h:55
mitk::GizmoObjectFactory::GetFileExtensions
std::string GetFileExtensions() override
Definition: mitkGizmoObjectFactory.h:47
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MapperSlotId
unsigned int MapperSlotId
Definition: mitkCommon.h:29
mitk::CoreObjectFactoryBase
Definition: mitkCoreObjectFactoryBase.h:37
mitk::CoreObjectFactoryBase::MultimapType
std::multimap< std::string, std::string > MultimapType
Definition: mitkCoreObjectFactoryBase.h:41
MITKGIZMO_EXPORT
#define MITKGIZMO_EXPORT
Definition: MitkGizmoExports.h:15
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::ROIMapperHelper::SetDefaultProperties
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.