Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::LocalStorageHandler< L > Class Template Reference

Templated class for management of LocalStorage implementations in Mappers. More...

#include <mitkLocalStorageHandler.h>

Inheritance diagram for mitk::LocalStorageHandler< L >:
Collaboration diagram for mitk::LocalStorageHandler< L >:

Public Member Functions

virtual void ClearLocalStorage (mitk::BaseRenderer *renderer, bool unregisterFromBaseRenderer=true) override
 deallocates a local storage for a specifc BaseRenderer (if the BaseRenderer is itself deallocating it in its destructor, it has to set unregisterFromBaseRenderer=false) More...
 
L * GetLocalStorage (mitk::BaseRenderer *forRenderer)
 Retrieves a LocalStorage for a specific BaseRenderer. More...
 
 ~LocalStorageHandler ()
 
- Public Member Functions inherited from mitk::BaseLocalStorageHandler
virtual ~BaseLocalStorageHandler ()
 

Protected Attributes

std::map< mitk::BaseRenderer *, L * > m_BaseRenderer2LS
 

Detailed Description

template<class L>
class mitk::LocalStorageHandler< L >

Templated class for management of LocalStorage implementations in Mappers.

The LocalStorageHandler is responsible for providing a LocalStorage to a concrete mitk::Mapper subclass. Each RenderWindow / mitk::BaseRenderer is assigned its own LocalStorage instance so that all contained ressources (actors, shaders, textures, ...) are provided individually per window.

Definition at line 55 of file mitkLocalStorageHandler.h.

Constructor & Destructor Documentation

template<class L>
mitk::LocalStorageHandler< L >::~LocalStorageHandler ( )
inline

Definition at line 92 of file mitkLocalStorageHandler.h.

Member Function Documentation

template<class L>
virtual void mitk::LocalStorageHandler< L >::ClearLocalStorage ( mitk::BaseRenderer renderer,
bool  unregisterFromBaseRenderer = true 
)
inlineoverridevirtual

deallocates a local storage for a specifc BaseRenderer (if the BaseRenderer is itself deallocating it in its destructor, it has to set unregisterFromBaseRenderer=false)

Implements mitk::BaseLocalStorageHandler.

Definition at line 65 of file mitkLocalStorageHandler.h.

Member Data Documentation

template<class L>
std::map<mitk::BaseRenderer *, L *> mitk::LocalStorageHandler< L >::m_BaseRenderer2LS
protected

Definition at line 58 of file mitkLocalStorageHandler.h.


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