0032433: Visualization, TKService - introduce Wasm_Window implementing Aspect_Window... IR-2021-06-11 WEEK-23
authorkgv <kgv@opencascade.com>
Sun, 25 Apr 2021 14:51:49 +0000 (17:51 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sat, 12 Jun 2021 09:36:24 +0000 (12:36 +0300)
commitf9ab9f7f1c949c9da13f42443208a6e9b0e41d70
tree689b638d03e9483d301addd60a54cff53b109ab9
parent7b3a032f1ea961aff793fa9f1c565d6d8667922e
0032433: Visualization, TKService - introduce Wasm_Window implementing Aspect_Window interface using Emscripten SDK

Introduced Wasm_Window implementing Aspect_Window interface.

Aspect_WindowInputListener has been extended by touch input callbacks (moved from AIS_ViewController),
which now implements redirection of single taps to UpdateMouseClick().

AIS_ViewController::FetchNavigationKeys() now requests more frames even if Delta is zero,
but navigation keys are pressed - indicated by a new flag AIS_WalkDelta::IsDefined().

Fixed missing implementation of Xw_Window::DisplayConnection() getter.
The property has been moved to the base class Aspect_Window.

Removed unused Aspect_Convert.hxx.

DRAWEXE targeting Wasm:
- added exposing of FS interface so that it is possible uploading/downloading files to/from emulated file system on JavaScript level;
- added printer redirecting messages to Module.printMessage callback accepting message gravity;
- Run_Appli() now skips std::cin when Module.noExitRuntime is set.
28 files changed:
adm/UDLIST
samples/webgl/CMakeLists.txt
samples/webgl/WasmOcctView.cpp
samples/webgl/WasmOcctView.h
samples/webgl/WasmVKeys.h [deleted file]
src/AIS/AIS_ViewController.cxx
src/AIS/AIS_ViewController.hxx
src/AIS/AIS_WalkDelta.hxx
src/Aspect/Aspect_Convert.hxx [deleted file]
src/Aspect/Aspect_Window.hxx
src/Aspect/Aspect_WindowInputListener.cxx
src/Aspect/Aspect_WindowInputListener.hxx
src/Aspect/FILES
src/Cocoa/Cocoa_Window.mm
src/DRAWEXE/CMakeLists.txt
src/DRAWEXE/DRAWEXE.cxx
src/DRAWEXE/DRAWEXE.html
src/Draw/Draw_Window.cxx
src/TKService/PACKAGES
src/ViewerTest/ViewerTest_EventManager.cxx
src/ViewerTest/ViewerTest_EventManager.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/WNT/WNT_Window.cxx
src/Wasm/FILES [new file with mode: 0644]
src/Wasm/Wasm_Window.cxx [new file with mode: 0644]
src/Wasm/Wasm_Window.hxx [new file with mode: 0644]
src/Xw/Xw_Window.cxx
src/Xw/Xw_Window.hxx