0030507: Visualization - introduce AIS_ViewController
authorkgv <kgv@opencascade.com>
Mon, 10 Jun 2019 18:03:41 +0000 (21:03 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 13 Jun 2019 15:50:12 +0000 (18:50 +0300)
commit49582f9dbf0b2a0502bcb37ea5789af5d940ca45
tree812a9c0624eb5da8b5d3935af5633c404a935eaa
parent61aef3ce0551b672f9ed471b02cc47d1d4deb32f
0030507: Visualization - introduce AIS_ViewController

ViewerTest_EventManager now inherits AIS_ViewController.
Platform-dependent user input handling within ViewerTest has been revised
to process events in common way through AIS_ViewController.
The mouse navigation has been changed, so that left mouse clicked
without modifers now rotates View.
The rubber-band selection can be activated via Alt+LeftMouseButton.
Selection is now done on mouse unclick and keyboard short-cuts take effect on unclick.

Aspect_Window::SetTitle() - added new method configuring Window title.
Introduced new types Aspect_Touch, Aspect_VKey, Aspect_ScrollDelta
for processing window events in platform-independent way.
40 files changed:
src/AIS/AIS_DragAction.hxx [copied from src/ViewerTest/ViewerTest_EventManager.lxx with 56% similarity]
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext.hxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_MouseGesture.hxx [new file with mode: 0644]
src/AIS/AIS_NavigationMode.hxx [copied from src/ViewerTest/ViewerTest_EventManager.lxx with 52% similarity]
src/AIS/AIS_RotationMode.hxx [new file with mode: 0644]
src/AIS/AIS_ViewController.cxx [new file with mode: 0644]
src/AIS/AIS_ViewController.hxx [new file with mode: 0644]
src/AIS/AIS_ViewInputBuffer.hxx [new file with mode: 0644]
src/AIS/AIS_WalkDelta.hxx [new file with mode: 0644]
src/AIS/FILES
src/Aspect/Aspect_ScrollDelta.hxx [new file with mode: 0644]
src/Aspect/Aspect_Touch.hxx [new file with mode: 0644]
src/Aspect/Aspect_TouchMap.hxx [moved from src/ViewerTest/ViewerTest_EventManager.lxx with 65% similarity]
src/Aspect/Aspect_VKey.hxx [new file with mode: 0644]
src/Aspect/Aspect_VKeyFlags.hxx [new file with mode: 0644]
src/Aspect/Aspect_VKeySet.cxx [new file with mode: 0644]
src/Aspect/Aspect_VKeySet.hxx [new file with mode: 0644]
src/Aspect/Aspect_Window.hxx
src/Aspect/FILES
src/Cocoa/Cocoa_Window.hxx
src/Cocoa/Cocoa_Window.mm
src/QABugs/QABugs_1.cxx
src/V3d/V3d_View.cxx
src/V3d/V3d_View.hxx
src/ViewerTest/FILES
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_EventManager.cxx
src/ViewerTest/ViewerTest_EventManager.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_V3dView.cxx [new file with mode: 0644]
src/ViewerTest/ViewerTest_V3dView.hxx [new file with mode: 0644]
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands_1.mm
src/WNT/WNT_Window.cxx
src/WNT/WNT_Window.hxx
src/Xw/Xw_Window.cxx
src/Xw/Xw_Window.hxx
tests/bugs/vis/bug26147