]> OCCT Git - occt.git/commit
0033551: Visualization - Add new transform persistence mode to force orthographic... IR-2024-01-19
authorrodrlyra <rodrlyra@opencascade.com>
Mon, 11 Dec 2023 16:37:36 +0000 (16:37 +0000)
committervglukhik <vglukhik@opencascade.com>
Wed, 17 Jan 2024 12:53:49 +0000 (12:53 +0000)
commitf035e0718b36b438df679a916f3383b1eced1779
tree096e80bf8d973ad3019ab2fda935bf03307540a5
parentcb290cc932e533628a2cdfcfbbbfe1f0883821b5
0033551: Visualization - Add new transform persistence mode to force orthographic projection on object.

The new transform persistence mode, with flag `Graphic3d_TMF_OrthoPers`, can be combined (bitwise OR operation) with the other persistence modes (2D, Trihedron or Zoom/Rotate Persistence) to make objects be rendered with orthographic projection when it is on a view with perspective projection.

If the view already uses orthographic projection, there will be no difference.

This feature was implemented to fix ViewCube being distorted when view with perspective projection changes size.
20 files changed:
src/Graphic3d/Graphic3d_TransModeFlags.hxx
src/Graphic3d/Graphic3d_TransformPers.hxx
src/SelectMgr/SelectMgr_AxisIntersector.cxx
src/SelectMgr/SelectMgr_AxisIntersector.hxx
src/SelectMgr/SelectMgr_BaseIntersector.hxx
src/SelectMgr/SelectMgr_RectangularFrustum.cxx
src/SelectMgr/SelectMgr_RectangularFrustum.hxx
src/SelectMgr/SelectMgr_SelectableObjectSet.cxx
src/SelectMgr/SelectMgr_SelectableObjectSet.hxx
src/SelectMgr/SelectMgr_SelectingVolumeManager.cxx
src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx
src/SelectMgr/SelectMgr_TriangularFrustum.cxx
src/SelectMgr/SelectMgr_TriangularFrustum.hxx
src/SelectMgr/SelectMgr_TriangularFrustumSet.cxx
src/SelectMgr/SelectMgr_TriangularFrustumSet.hxx
src/SelectMgr/SelectMgr_ViewerSelector.cxx
src/SelectMgr/SelectMgr_ViewerSelector.hxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/v3d/viewcube/orthopers [new file with mode: 0644]