Public Member Functions | Protected Member Functions

mitk::RenderingManagerFactory Class Reference
[Renderer and RenderWindow Classes]

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

#include <mitkRenderingManagerFactory.h>

Inheritance diagram for mitk::RenderingManagerFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

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 47 of file mitkRenderingManagerFactory.h.


Constructor & Destructor Documentation

virtual mitk::RenderingManagerFactory::~RenderingManagerFactory (  ) [inline, virtual]

Definition at line 50 of file mitkRenderingManagerFactory.h.

{};
mitk::RenderingManagerFactory::RenderingManagerFactory (  ) [inline, protected]

Definition at line 57 of file mitkRenderingManagerFactory.h.

  {
  };

Member Function Documentation

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

Factory method to create platform specific instances of RenderingManager.

Implemented in mitk::TestingRenderingManagerFactory, and QmitkRenderingManagerFactory.

Referenced by mitk::RenderingManager::GetInstance().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines