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

Method RequestUpdate

Modules/Core/src/Controllers/mitkRenderingManager.cpp:191–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 4

RequestUpdateAllMethod · 0.95
InitializeViewMethod · 0.95
SetAntiAliasingMethod · 0.45
RotateCameraMethod · 0.45

Calls 2

findMethod · 0.45

Tested by

no test coverage detected