VTK does not support sharing of graphics resources (vtkProps/vtkActors) across multiple render windows (yet).
Thus, we need to manage multipe graphics resources within the mitk::Mappers.
Ideas:
- Add parameter BaseRenderer* to mitk::BaseVtkMapper3D::GetProp() and GetLabelProp() and make both protected (CAVE: picking seems to use these).
- Manage a hashmap with .first=renderer, .second={actor, mapper}
- Store the .second part in a template class, which observes the renderer and removes itself from the hashmap when the renderer is destructed.
- mitk::Mappers that use vtkProps/vtkActors for rendering should use this mechanism.
The most important mitk::Mapper to change is the SurfaceMapper.