* Enables drawing of the text label collection. * If you want to disable it, call the Disable() function. */
| 80 | * If you want to disable it, call the Disable() function. |
| 81 | */ |
| 82 | void mitk::RenderWindowFrame::Enable(float col1, float col2, float col3) |
| 83 | { |
| 84 | vtkSmartPointer<vtkMitkRectangleProp> rect = vtkSmartPointer<vtkMitkRectangleProp>::New(); |
| 85 | rect->SetColor(col1, col2, col3); |
| 86 | |
| 87 | m_RectangleRenderer->AddActor(rect); |
| 88 | if (!mitk::VtkLayerController::GetInstance(m_RenderWindow)->IsRendererInserted(m_RectangleRenderer)) |
| 89 | { |
| 90 | m_RectangleRenderer->EraseOff(); |
| 91 | m_RectangleRenderer->SetInteractive(0); |
| 92 | |
| 93 | mitk::VtkLayerController::GetInstance(m_RenderWindow)->InsertForegroundRenderer(m_RectangleRenderer, true); |
| 94 | |
| 95 | m_IsEnabled = true; |
| 96 | } |
| 97 | } |
| 98 | /** |
| 99 | * Checks, if the text is currently |
| 100 | * enabled (visible) |