MCPcopy Create free account
hub / github.com/MITK/MITK / Enable

Method Enable

Modules/Core/src/Rendering/mitkRenderWindowFrame.cpp:82–97  ·  view source on GitHub ↗

* Enables drawing of the text label collection. * If you want to disable it, call the Disable() function. */

Source from the content-addressed store, hash-verified

80 * If you want to disable it, call the Disable() function.
81 */
82void 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)

Callers 1

Calls 4

IsRendererInsertedMethod · 0.80
NewFunction · 0.50
SetColorMethod · 0.45

Tested by 1