Medical Imaging Interaction Toolkit  2026.06.00
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 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 {
31  {
32  public:
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
43  mitk::Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override;
44 
49  void SetDefaultProperties(mitk::DataNode *node) override;
50  };
51 }
52 
53 #endif
#define MITKGIZMO_EXPORT
Abstract base class for factories that create mappers and set default properties.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Registers mappers and assigns default properties for mitk::Gizmo.
mitk::Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
Create a mapper for the given node if it contains a Gizmo.
void SetDefaultProperties(mitk::DataNode *node) override
Assign default rendering properties for Gizmo nodes.
mitkClassMacro(GizmoObjectFactory, CoreObjectFactoryBase)
unsigned int MapperSlotId
Definition: mitkCommon.h:23
Find image slices visible on a given plane.