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

Method TerminateApp

Rendering/UI/vtkWebAssemblyRenderWindowInteractor.cxx:653–672  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

651
652//------------------------------------------------------------------------------
653void vtkWebAssemblyRenderWindowInteractor::TerminateApp(void)
654{
655 this->Done = true;
656
657 auto& internals = (*this->Internals);
658
659 this->UnRegisterUICallbacks();
660
661 // Only post a quit message if Start was called...
662 if (internals.StartedMessageLoop)
663 {
664 if (!emscripten_has_asyncify())
665 {
666 // If we are not using asyncify, we need to stop the main loop.
667 emscripten_cancel_main_loop();
668 }
669 internals.StartedMessageLoop = false;
670 }
671 internals.ExpandedCanvasToContainerElement = false;
672}
673
674//------------------------------------------------------------------------------
675int vtkWebAssemblyRenderWindowInteractor::InternalCreateTimer(

Callers 1

ExitCallbackMethod · 0.95

Calls 1

UnRegisterUICallbacksMethod · 0.95

Tested by

no test coverage detected