Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkRenderingManagerFactory.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 mitkRenderingManagerFactory_h
14 #define mitkRenderingManagerFactory_h
15 
16 #include <mitkRenderingManager.h>
17 
18 namespace mitk
19 {
41  {
42  public:
44 
47  virtual RenderingManager::Pointer CreateRenderingManager() const = 0;
48 
49  protected:
51 
52  private:
53  };
54 
65  {
66  public:
69  {
71  {
73  }
74  };
75 
78 
83  mitk::RenderingManager::Pointer CreateRenderingManager() const override
84  {
85  TestingRenderingManager::Pointer specificSmartPtr = TestingRenderingManager::New();
86  RenderingManager::Pointer smartPtr = specificSmartPtr.GetPointer();
87  return smartPtr;
88  };
89  };
90 
91 } // namespace mitk
92 
93 #endif
#define MITKCORE_EXPORT
Factory interface for facilitating the usage of a platform-specific mitk::RenderingManager instance.
virtual RenderingManager::Pointer CreateRenderingManager() const =0
Factory method to create platform specific instances of RenderingManager.
static bool HasFactory()
Check whether a factory has already been set.
static void SetFactory(RenderingManagerFactory *factory)
Set the factory that produces platform-specific RenderingManager instances.
Factory that creates TestingRenderingManager instances.
TestingRenderingManagerFactory()
Constructor. Registers this factory with RenderingManager if no factory is set yet.
mitk::RenderingManager::Pointer CreateRenderingManager() const override
Creates a new TestingRenderingManager instance.
Find image slices visible on a given plane.