0025783: Visualization - allow Z-layer to draw 2D objects and to make it alternative...
authorisz <isz@opencascade.com>
Thu, 16 Apr 2015 08:33:46 +0000 (11:33 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 16 Apr 2015 08:35:04 +0000 (11:35 +0300)
commitaf65fb19416603bb4d118ed8cde00436fdd9ad88
tree1a9546c2af787e1e787e8b71dca4a4ff2a728b45
parentce77f9998a506d9e777dd6c8826626059676ab74
0025783: Visualization - allow Z-layer to draw 2D objects and to make it alternative to Overlay and Underlay

Add one more pre-defined Z-layer Graphic3d_ZLayerId_BotOSD.

Define new Transformation Persistence flags Graphic3d_TMF_2d and Graphic3d_TMF_2d_IsTopDown
for displaying objects in screen coordinates.
Anchor point defines angle of the screen to display the object in similar way as for Graphic3d_TMF_TriedronPers.

Extend Draw Harness command vdisplay with new options:
 -overlay as alias for -toposd.
 -underlay and -botosd.
 -noselect to prevent automatic selection activation.
 -dispMode and -highMode to define displaying and highlighting modes.
 -2d, -2dtopdown and -3d to manage displaying in screen coordinates.
 -trsfPers and -trsfPersPos for Transformation Persistence options.

Drop command vsettransmode, replaced by vdisplay.

Correction of test-case bugs vis bug641
24 files changed:
src/BRepTest/BRepTest_BasicCommands.cxx
src/Graphic3d/Graphic3d_TransModeFlags.hxx
src/Graphic3d/Graphic3d_ZLayerId.hxx
src/OpenGl/OpenGl_GraduatedTrihedron.cxx
src/OpenGl/OpenGl_LayerList.cxx
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_transform_persistence.hxx
src/PrsMgr/PrsMgr_PresentableObject.cdl
src/ViewerTest/ViewerTest.cxx
src/Visual3d/Visual3d_ViewManager.cxx
tests/bugs/iges/fra62523
tests/bugs/modalg_2/bug20785
tests/bugs/moddata_1/buc60967
tests/bugs/moddata_2/bug22910_1
tests/bugs/moddata_2/bug2569_1
tests/bugs/moddata_2/bug6474
tests/bugs/vis/bug23120
tests/bugs/vis/bug23120_1 [deleted file]
tests/bugs/vis/bug25783_1 [new file with mode: 0644]
tests/bugs/vis/bug25783_2 [new file with mode: 0644]
tests/bugs/vis/bug25867
tests/bugs/vis/bug641