0029384: Visualization, TKOpenGl - basic integration with OpenVR
authorkgv <kgv@opencascade.com>
Thu, 16 Apr 2020 15:44:50 +0000 (18:44 +0300)
committerkgv <kgv@opencascade.com>
Wed, 6 May 2020 17:45:53 +0000 (20:45 +0300)
commitb40cdc2b5584fdf78f90594a3c7469213c7dc4a6
tree2b41be488638d6b4fd554968dce71579294aea03
parent2615c2d7051784c7fa450abca4a9f01e8685b9ec
0029384: Visualization, TKOpenGl - basic integration with OpenVR

V3d_View::AutoZFit() is now called only before redraw
within methods V3d_View::Redraw() and V3d_View::Update().

Graphic3d_CView now holds Aspect_ExtendedRealitySession object.
Aspect_OpenVRSession implements new interface via optional OpenVR library.
Graphic3d_CView::ProcessInput() - added new interface method
which should be called for processing positional input (head tracking).

Graphic3d_Camera now allows setting custom stereoscopic Projection matrices.

OpenGl_Context::Camera() - context now holds Camera object
in addition to active camera matrices.

genproj.tcl has been extended to handle optional CSF_OpenVR dependency.
69 files changed:
adm/RESOURCES
adm/UDLIST
adm/genconf.tcl
adm/genconfdeps.tcl
adm/genproj.tcl
adm/templates/env.bat
adm/templates/env.sh
src/AIS/AIS_ViewController.cxx
src/AIS/AIS_ViewController.hxx
src/AIS/AIS_XRTrackedDevice.cxx [new file with mode: 0644]
src/AIS/AIS_XRTrackedDevice.hxx [new file with mode: 0644]
src/AIS/FILES
src/Aspect/Aspect_ColorSpace.hxx [new file with mode: 0644]
src/Aspect/Aspect_Eye.hxx [new file with mode: 0644]
src/Aspect/Aspect_FrustumLRBT.hxx [new file with mode: 0644]
src/Aspect/Aspect_GraphicsLibrary.hxx [new file with mode: 0644]
src/Aspect/Aspect_OpenVRSession.cxx [new file with mode: 0644]
src/Aspect/Aspect_OpenVRSession.hxx [new file with mode: 0644]
src/Aspect/Aspect_TrackedDevicePose.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRAction.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRActionSet.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRActionType.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRAnalogActionData.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRDigitalActionData.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRGenericAction.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRHapticActionData.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRPoseActionData.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRSession.cxx [new file with mode: 0644]
src/Aspect/Aspect_XRSession.hxx [new file with mode: 0644]
src/Aspect/Aspect_XRTrackedDeviceRole.hxx [new file with mode: 0644]
src/Aspect/FILES
src/Draw/Draw_BasicCommands.cxx
src/Graphic3d/Graphic3d_CView.cxx
src/Graphic3d/Graphic3d_CView.hxx
src/Graphic3d/Graphic3d_Camera.cxx
src/Graphic3d/Graphic3d_Camera.hxx
src/Graphic3d/Graphic3d_RenderingParams.hxx
src/Graphic3d/Graphic3d_StereoMode.hxx
src/Graphic3d/Graphic3d_TransformPers.hxx
src/OS/Visualization.tcl
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_FrameStatsPrs.cxx
src/OpenGl/OpenGl_GraduatedTrihedron.cxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_Redraw.cxx
src/OpenGl/OpenGl_Window.cxx
src/OpenGl/OpenGl_Window.hxx
src/OpenGl/OpenGl_Window_1.mm
src/SelectMgr/SelectMgr_ViewerSelector.hxx
src/TKService/EXTERNLIB
src/V3d/V3d_View.cxx
src/V3d/V3d_View_3.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/XRResources/FILES [new file with mode: 0644]
src/XRResources/occtvr_actions.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_generic.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_holographic_hmd.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_index_hmd.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_rift.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_vive.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_vive_controller.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_vive_cosmos.json [new file with mode: 0644]
src/XRResources/occtvr_bindings_vive_pro.json [new file with mode: 0644]