Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkCoreObjectFactoryBase.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 mitkCoreObjectFactoryBase_h
14 #define mitkCoreObjectFactoryBase_h
15 
16 // the mitkLog.h header is necessary for CMake test drivers.
17 // Since the EXTRA_INCLUDE parameter of CREATE_TEST_SOURCELIST only
18 // allows one extra include file, we specify mitkLog.h here so it will
19 // be available to all classes implementing this interface.
20 #include <mitkLog.h>
21 
22 #include <mitkMapper.h>
23 #include <MitkCoreExports.h>
24 #include <itkObjectFactoryBase.h>
25 #include <itkVersion.h>
26 
27 namespace mitk
28 {
29  class DataNode;
30 
40  class MITKCORE_EXPORT CoreObjectFactoryBase : public itk::Object
41  {
42  public:
44 
51  virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) = 0;
52 
57  virtual void SetDefaultProperties(mitk::DataNode *node) = 0;
58 
63  virtual const char *GetITKSourceVersion() const { return ITK_SOURCE_VERSION; }
64 
69  virtual const char *GetDescription() const { return "Core Object Factory"; }
70  };
71 }
72 #endif
#define MITKCORE_EXPORT
Abstract base class for factories that create mappers and set default properties.
virtual const char * GetDescription() const
Get a human-readable description of this factory.
mitkClassMacroItkParent(CoreObjectFactoryBase, itk::Object)
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId)=0
Create a mapper for the given data node and mapper slot.
virtual void SetDefaultProperties(mitk::DataNode *node)=0
Set default rendering properties on the given data node.
virtual const char * GetITKSourceVersion() const
Get the ITK source version string.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
unsigned int MapperSlotId
Definition: mitkCommon.h:23
Find image slices visible on a given plane.