Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <mitkVtkLayerController.h>
Public Member Functions | |
VtkLayerController (vtkSmartPointer< vtkRenderWindow > renderWindow) | |
virtual | ~VtkLayerController () |
vtkSmartPointer< vtkRenderer > | GetSceneRenderer () |
void | InsertBackgroundRenderer (vtkSmartPointer< vtkRenderer > renderer, bool forceAbsoluteBackground) |
void | InsertForegroundRenderer (vtkSmartPointer< vtkRenderer > renderer, bool forceAbsoluteForeground) |
void | InsertSceneRenderer (vtkSmartPointer< vtkRenderer > renderer) |
void | SetRenderWindow (vtkSmartPointer< vtkRenderWindow > renwin) |
void | RemoveRenderer (vtkSmartPointer< vtkRenderer > renderer) |
bool | IsRendererInserted (vtkSmartPointer< vtkRenderer > renderer) |
unsigned int | GetNumberOfRenderers () |
void | SetEraseForAllRenderers (int i) |
Static Public Member Functions | |
static VtkLayerController * | GetInstance (vtkSmartPointer< vtkRenderWindow > renWin) |
static void | AddInstance (vtkSmartPointer< vtkRenderWindow > renWin, vtkSmartPointer< vtkRenderer > mitkSceneRenderer) |
static void | RemoveInstance (vtkSmartPointer< vtkRenderWindow > renWin) |
Protected Attributes | |
vtkSmartPointer< vtkRenderWindow > | m_RenderWindow |
Manages the VTK layer hierarchy of a vtkRenderWindow. For simple access the layers are divided into three main groups: background, scene and foreground layers. Renderers can be registered via the insert... functions and removed via the RemoveRenderer function.
Definition at line 34 of file mitkVtkLayerController.h.
mitk::VtkLayerController::VtkLayerController | ( | vtkSmartPointer< vtkRenderWindow > | renderWindow | ) |
|
virtual |
|
static |
|
static |
unsigned int mitk::VtkLayerController::GetNumberOfRenderers | ( | ) |
Returns the number of renderers in the renderwindow.
vtkSmartPointer<vtkRenderer> mitk::VtkLayerController::GetSceneRenderer | ( | ) |
Returns the current vtkRenderer of the Scene
void mitk::VtkLayerController::InsertBackgroundRenderer | ( | vtkSmartPointer< vtkRenderer > | renderer, |
bool | forceAbsoluteBackground | ||
) |
Connects a VTK renderer with a vtk renderwindow. The renderer will be rendered in the background. With forceAbsoluteBackground set true a renderer can be placed at the absolute background of the scene. Multiple calls with forceAbsoluteBackground set true will set the latest registered renderer as background.
void mitk::VtkLayerController::InsertForegroundRenderer | ( | vtkSmartPointer< vtkRenderer > | renderer, |
bool | forceAbsoluteForeground | ||
) |
Connects a VTK renderer with a vtk renderwindow. The renderer will be rendered in the foreground. With forceAbsoluteBackground set true a renderer can be placed at the absolute foreground of the scene. Multiple calls with forceAbsoluteForeground set true will set the latest registered renderer as foreground.
void mitk::VtkLayerController::InsertSceneRenderer | ( | vtkSmartPointer< vtkRenderer > | renderer | ) |
Connects a VTK renderer with a vtk renderwindow. The renderer will be rendered between background renderers and foreground renderers.
bool mitk::VtkLayerController::IsRendererInserted | ( | vtkSmartPointer< vtkRenderer > | renderer | ) |
Returns true if a renderer has been inserted
|
static |
void mitk::VtkLayerController::RemoveRenderer | ( | vtkSmartPointer< vtkRenderer > | renderer | ) |
A renderer which has been inserted via a insert... function can be removed from the vtkRenderWindow with RemoveRenderer.
void mitk::VtkLayerController::SetEraseForAllRenderers | ( | int | i | ) |
void mitk::VtkLayerController::SetRenderWindow | ( | vtkSmartPointer< vtkRenderWindow > | renwin | ) |
Connects a VtkRenderWindow with the layer controller.
|
protected |
Definition at line 93 of file mitkVtkLayerController.h.