13 #ifndef mitkVtkLayerController_h
14 #define mitkVtkLayerController_h
19 #include <vtkSmartPointer.h>
21 class vtkRenderWindow;
38 static void AddInstance(vtkSmartPointer<vtkRenderWindow> renWin, vtkSmartPointer<vtkRenderer> mitkSceneRenderer);
39 static void RemoveInstance(vtkSmartPointer<vtkRenderWindow> renWin);
47 vtkSmartPointer<vtkRenderer> GetSceneRenderer();
54 void InsertBackgroundRenderer(vtkSmartPointer<vtkRenderer> renderer,
bool forceAbsoluteBackground);
61 void InsertForegroundRenderer(vtkSmartPointer<vtkRenderer> renderer,
bool forceAbsoluteForeground);
67 void InsertSceneRenderer(vtkSmartPointer<vtkRenderer> renderer);
72 void SetRenderWindow(vtkSmartPointer<vtkRenderWindow> renwin);
78 void RemoveRenderer(vtkSmartPointer<vtkRenderer> renderer);
83 bool IsRendererInserted(vtkSmartPointer<vtkRenderer> renderer);
88 unsigned int GetNumberOfRenderers();
90 void SetEraseForAllRenderers(
int i);
104 typedef std::vector<vtkSmartPointer<vtkRenderer>> RendererVectorType;
105 RendererVectorType m_BackgroundRenderers;
106 RendererVectorType m_SceneRenderers;
107 RendererVectorType m_ForegroundRenderers;
110 static vtkLayerControllerMapType s_LayerControllerMap;