| 189 | } |
| 190 | |
| 191 | void RenderingManager::RequestUpdate(vtkRenderWindow *renderWindow) |
| 192 | { |
| 193 | // If the renderWindow is not valid, we do not want to inadvertently create |
| 194 | // an entry in the m_RenderWindowList map. It is possible if the user is |
| 195 | // regularly calling AddRenderer and RemoveRenderer for a rendering update |
| 196 | // to come into this method with a renderWindow pointer that is valid in the |
| 197 | // sense that the window does exist within the application, but that |
| 198 | // renderWindow has been temporarily removed from this RenderingManager for |
| 199 | // performance reasons. |
| 200 | if (m_RenderWindowList.find(renderWindow) == m_RenderWindowList.cend()) |
| 201 | { |
| 202 | return; |
| 203 | } |
| 204 | |
| 205 | m_RenderWindowList[renderWindow] = RENDERING_REQUESTED; |
| 206 | |
| 207 | if (!m_UpdatePending) |
| 208 | { |
| 209 | m_UpdatePending = true; |
| 210 | this->GenerateRenderingRequestEvent(); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | void RenderingManager::ForceImmediateUpdate(vtkRenderWindow *renderWindow) |
| 215 | { |
no test coverage detected