Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Templated class for management of LocalStorage implementations in Mappers. More...
#include <mitkLocalStorageHandler.h>
Public Member Functions | |
void | ClearLocalStorage (mitk::BaseRenderer *renderer, bool unregisterFromBaseRenderer=true) override |
deallocates a local storage for a specific BaseRenderer (if the BaseRenderer is itself deallocating it in its destructor, it has to set unregisterFromBaseRenderer=false) More... | |
std::vector< mitk::BaseRenderer * > | GetRegisteredBaseRenderer () |
L * | GetLocalStorage (mitk::BaseRenderer *forRenderer) |
Retrieves a LocalStorage for a specific BaseRenderer. More... | |
~LocalStorageHandler () override | |
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 resources (actors, shaders, textures, ...) are provided individually per window.
Definition at line 48 of file mitkLocalStorageHandler.h.
|
inlineoverride |
Definition at line 96 of file mitkLocalStorageHandler.h.
|
inlineoverridevirtual |
deallocates a local storage for a specific BaseRenderer (if the BaseRenderer is itself deallocating it in its destructor, it has to set unregisterFromBaseRenderer=false)
Implements mitk::BaseLocalStorageHandler.
Definition at line 58 of file mitkLocalStorageHandler.h.
|
inline |
Retrieves a LocalStorage for a specific BaseRenderer.
Should be used by mappers in GenerateDataForRenderer()
Definition at line 83 of file mitkLocalStorageHandler.h.
Referenced by mitk::GizmoMapper2D::GetVtkProp().
|
inline |
Definition at line 68 of file mitkLocalStorageHandler.h.
|
protected |
Definition at line 51 of file mitkLocalStorageHandler.h.
Referenced by mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::ClearLocalStorage(), mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::GetLocalStorage(), mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::GetRegisteredBaseRenderer(), and mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::~LocalStorageHandler().