Medical Imaging Interaction Toolkit  2016.11.0
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 44 of file mitkRenderingManagerFactory.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file mitkRenderingManagerFactory.h.

mitk::RenderingManagerFactory::RenderingManagerFactory ( )
inlineprotected

Definition at line 54 of file mitkRenderingManagerFactory.h.

Member Function Documentation

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

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