* Disables drawing of the color Video background. * If you want to enable it, call the Enable() function. */
| 169 | * If you want to enable it, call the Enable() function. |
| 170 | */ |
| 171 | void 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 | |
| 186 | bool QmitkVideoBackground::IsEnabled() |
| 187 | { |
no test coverage detected