Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Templated class for management of LocalStorage implementations in Mappers. More...
#include <mitkLocalStorageHandler.h>
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 |
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.
|
inline |
Definition at line 92 of file mitkLocalStorageHandler.h.
|
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.
|
inline |
Retrieves a LocalStorage for a specific BaseRenderer.
Should be used by mappers in GenerateDataForRenderer()
Definition at line 79 of file mitkLocalStorageHandler.h.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::VtkGLMapperWrapper::GenerateDataForRenderer(), mitk::UnstructuredGridMapper2D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::VtkGLMapperWrapper::GetVtkProp(), mitk::GizmoMapper2D::GetVtkProp(), mitk::SurfaceVtkMapper2D::GetVtkProp(), mitk::SurfaceVtkMapper2D::ResetMapper(), and mitk::SurfaceVtkMapper2D::Update().
|
protected |
Definition at line 58 of file mitkLocalStorageHandler.h.