mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
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
This commit is contained in:
@@ -88,6 +88,13 @@ myZLayerGenId (1, IntegerLast())
|
||||
MyGraphicDriver = theDriver;
|
||||
|
||||
// default layers are always presented in display layer sequence it can not be removed
|
||||
Graphic3d_ZLayerSettings anUnderlaySettings;
|
||||
anUnderlaySettings.Flags = 0;
|
||||
anUnderlaySettings.IsImmediate = false;
|
||||
myLayerIds.Add (Graphic3d_ZLayerId_BotOSD);
|
||||
myLayerSeq.Append (Graphic3d_ZLayerId_BotOSD);
|
||||
myMapOfZLayerSettings.Bind (Graphic3d_ZLayerId_BotOSD, anUnderlaySettings);
|
||||
|
||||
Graphic3d_ZLayerSettings aDefSettings;
|
||||
aDefSettings.Flags = Graphic3d_ZLayerDepthTest
|
||||
| Graphic3d_ZLayerDepthWrite;
|
||||
|
Reference in New Issue
Block a user