17 #ifndef mitkVtkLayerController_h
18 #define mitkVtkLayerController_h
23 #include <vtkSmartPointer.h>
25 class vtkRenderWindow;
32 #pragma warning(disable : 4251)
47 static void AddInstance(vtkSmartPointer<vtkRenderWindow> renWin, vtkSmartPointer<vtkRenderer> mitkSceneRenderer);
48 static void RemoveInstance(vtkSmartPointer<vtkRenderWindow> renWin);
56 vtkSmartPointer<vtkRenderer> GetSceneRenderer();
63 void InsertBackgroundRenderer(vtkSmartPointer<vtkRenderer> renderer,
bool forceAbsoluteBackground);
70 void InsertForegroundRenderer(vtkSmartPointer<vtkRenderer> renderer,
bool forceAbsoluteForeground);
76 void InsertSceneRenderer(vtkSmartPointer<vtkRenderer> renderer);
81 void SetRenderWindow(vtkSmartPointer<vtkRenderWindow> renwin);
87 void RemoveRenderer(vtkSmartPointer<vtkRenderer> renderer);
92 bool IsRendererInserted(vtkSmartPointer<vtkRenderer> renderer);
97 unsigned int GetNumberOfRenderers();
99 void SetEraseForAllRenderers(
int i);
113 typedef std::vector<vtkSmartPointer<vtkRenderer>> RendererVectorType;
114 RendererVectorType m_BackgroundRenderers;
115 RendererVectorType m_SceneRenderers;
116 RendererVectorType m_ForegroundRenderers;
119 static vtkLayerControllerMapType s_LayerControllerMap;
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
DataCollection - Class to facilitate loading/accessing structured data.