17 #ifndef LOCALSTORAGEHANDLER_H_HEADER_INCLUDED_C1E6EA08
18 #define LOCALSTORAGEHANDLER_H_HEADER_INCLUDED_C1E6EA08
26 #include <itkObject.h>
27 #include <itkWeakPointer.h>
30 #include <vtkConfigure.h>
68 if (unregisterFromBaseRenderer)
70 L *l = m_BaseRenderer2LS[renderer];
71 m_BaseRenderer2LS.erase(renderer);
81 L *l = m_BaseRenderer2LS[forRenderer];
86 m_BaseRenderer2LS[forRenderer] = l;
94 typename std::map<mitk::BaseRenderer *, L *>::iterator it;
96 for (it = m_BaseRenderer2LS.begin(); it != m_BaseRenderer2LS.end(); it++)
98 (*it).first->UnregisterLocalStorageHandler(
this);
102 m_BaseRenderer2LS.clear();
L * GetLocalStorage(mitk::BaseRenderer *forRenderer)
Retrieves a LocalStorage for a specific BaseRenderer.
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
std::map< mitk::BaseRenderer *, L * > m_BaseRenderer2LS
DataCollection - Class to facilitate loading/accessing structured data.
Interface for accessing (templated) LocalStorageHandler instances.
virtual ~BaseLocalStorageHandler()
virtual void ClearLocalStorage(mitk::BaseRenderer *renderer, bool unregisterFromBaseRenderer=true)=0
void RegisterLocalStorageHandler(mitk::BaseLocalStorageHandler *lsh)
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...
void UnregisterLocalStorageHandler(mitk::BaseLocalStorageHandler *lsh)