Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit

Factory interface for facilitating the usage of a platform-specific mitk::RenderingManager instance. More...

#include <mitkRenderingManagerFactory.h>

Inheritance diagram for mitk::RenderingManagerFactory:

Public Member Functions

virtual ~RenderingManagerFactory ()
 
virtual RenderingManager::Pointer CreateRenderingManager () const =0
 Factory method to create platform specific instances of RenderingManager. More...
 

Protected Member Functions

 RenderingManagerFactory ()
 

Detailed Description

Factory interface for facilitating the usage of a platform-specific mitk::RenderingManager instance.

This class provides an interface for creating the required singleton instance of RenderingManager. Concrete platform-specific subclasses should be instantiated once during startup of the framework (e.g. as a static instance). Their constructor then merely has to call mitk::RenderingManager::SetFactory().

Note
Instead of using an external class for the manager instantiation, the factory mechanism could be integrated into the RenderingManager (and its subclasses) itself. However, this would make the framework specific instantiation more complicated. Simply creating a static instance somewhere would not work since RenderingManager derives from itk::Object, which itself depends on the initialization of static members (which is problematic since the order of static member initializations cannot easily be controlled).

Definition at line 40 of file mitkRenderingManagerFactory.h.

Constructor & Destructor Documentation

◆ ~RenderingManagerFactory()

virtual mitk::RenderingManagerFactory::~RenderingManagerFactory ( )
inlinevirtual

Definition at line 43 of file mitkRenderingManagerFactory.h.

◆ RenderingManagerFactory()

mitk::RenderingManagerFactory::RenderingManagerFactory ( )
inlineprotected

Definition at line 50 of file mitkRenderingManagerFactory.h.

Member Function Documentation

◆ CreateRenderingManager()

virtual RenderingManager::Pointer mitk::RenderingManagerFactory::CreateRenderingManager ( ) const
pure virtual

Factory method to create platform specific instances of RenderingManager.

Implemented in mitk::TestingRenderingManagerFactory, and QmitkRenderingManagerFactory.


The documentation for this class was generated from the following file: