]> OCCT Git - occt.git/commit
0033551: Visualization - Add new transform persistence mode to force orthographic... IR-2023-12-22
authorrodrlyra <rodrlyra@opencascade.com>
Mon, 11 Dec 2023 16:37:36 +0000 (16:37 +0000)
committerrodrlyra <rodrlyra@opencascade.com>
Fri, 5 Jan 2024 18:36:54 +0000 (18:36 +0000)
commit0141024df595cdc8db3004927ca48c249776603b
treefbf03ba118e7fcfde730f9f652a07848d1d6dfad
parent5c9480638558bd1b4528669b1eb4859cadd9a257
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]