MCPcopy Create free account
hub / github.com/Kitware/VTK / ProcessEvents

Method ProcessEvents

Rendering/UI/vtkWebAssemblyRenderWindowInteractor.cxx:241–270  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

239
240//------------------------------------------------------------------------------
241void vtkWebAssemblyRenderWindowInteractor::ProcessEvents()
242{
243 // initialize if not already done.
244 if (!this->Initialized)
245 {
246 this->Initialize();
247 }
248 if (!this->Enabled)
249 {
250 return;
251 }
252 auto& internals = (*this->Internals);
253 // register UI callbacks if not already done. This can happen when the end-user application
254 // bypasses `vtkRenderWindowInteractor::Start` and directly invokes `ProcessEvents`.
255 if (!internals.RegisteredUICallbacks)
256 {
257 this->RegisterUICallbacks();
258 }
259 while (!internals.Events.empty())
260 {
261 auto& event = (*internals.Events.front());
262 this->ProcessEvent(event.type(), event.data());
263 internals.Events.pop_front();
264 }
265 if (!internals.ExpandedCanvasToContainerElement)
266 {
267 vtkInitializeCanvasElement(this->CanvasSelector, this->ExpandCanvasToContainer);
268 internals.ExpandedCanvasToContainerElement = true;
269 }
270}
271
272//------------------------------------------------------------------------------
273void vtkWebAssemblyRenderWindowInteractor::RegisterUICallbacks()

Callers 2

spinOnceFunction · 0.45
spinOnceAndGetDoneFunction · 0.45

Calls 8

InitializeMethod · 0.95
RegisterUICallbacksMethod · 0.95
ProcessEventMethod · 0.95
pop_frontMethod · 0.80
emptyMethod · 0.45
frontMethod · 0.45
typeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected