The MITK rendering pipeline supports VTK and openGL rendering. For this purpose we enable and disable openGL during the pipeline according to the corresponding mapper and perform a few other things mapper type specifically.
However, in the code is often a cast from the mapper to the base class VtkMapper3D in order to perform a VTK specific action. As a consequence, in most cases this does not work for VtkMapper2D mappers.
The task is to find out if a base class (e.g. mitkVtkMapper) of both VTK mapper types could replace the mitkVtkMapper3D casts in the code.