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

Method Disable

Modules/QtWidgetsExt/src/QmitkVideoBackground.cpp:171–184  ·  view source on GitHub ↗

* Disables drawing of the color Video background. * If you want to enable it, call the Enable() function. */

Source from the content-addressed store, hash-verified

169 * If you want to enable it, call the Enable() function.
170 */
171void QmitkVideoBackground::Disable()
172{
173 if (this->IsEnabled())
174 {
175 mitk::VtkLayerController *layerController = nullptr;
176 for (auto it = m_renderWindowVectorInfo.begin(); it != m_renderWindowVectorInfo.end(); it++)
177 {
178 layerController = mitk::VtkLayerController::GetInstance((*it).renWin);
179 if (layerController)
180 layerController->RemoveRenderer((*it).videoRenderer);
181 }
182 m_QTimer->stop();
183 }
184}
185
186bool QmitkVideoBackground::IsEnabled()
187{

Callers 2

~QmitkVideoBackgroundMethod · 0.95
OnVideoSourceDeleteMethod · 0.95

Calls 5

IsEnabledMethod · 0.95
RemoveRendererMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected