1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug26149
kgv 778cd66786 0027860: Visualization - clean up Transformation Persistence API
Graphic3d_Camera::TransformMatrices redundant NCollection_Handle usage
has been replaced with validity flags.

Graphic3d_TransModeFlags now defined as enumeration, not integer bit flags.
Graphic3d_TMF_PanPers and Graphic3d_TMF_FullPers have been removed.
Graphic3d_TMF_ZoomRotatePers has been introduced.

Graphic3d_TransformPers is now inherits Standard_Transient.
Graphic3d_TransformPers now defines dedicated constructors
for 3D persistence (zoom / rotate) and 2D persistence (2d / trihedron).
2D persistence now supports dedicated values for X and Y offsets.
The corner is now specified by enumeration Aspect_TypeOfTriedronPosition
instead of indirect interpretation of anchor point values.
Fixed handling of Graphic3d_TMF_ZoomRotatePers (combination of Graphic3d_TMF_RotatePers + Graphic3d_TMF_ZoomPers).

PrsMgr_PresentableObject, Graphic3d_CStructure now hold
Handle(Graphic3d_TransformPers) instead of a value.
Method ::SetTransformPersistence(), ::TransformPersistence()
now works with Handle(Graphic3d_TransformPers).
Old methods have been marked deprecated.
2016-09-30 09:43:12 +03:00

44 lines
1.5 KiB
Plaintext

puts "==========="
puts "0026149: Visualization - depth buffer should not be written within Z-layers without Graphic3d_ZLayerDepthWrite flag"
puts "Check that objects drawn in Graphic3d_ZLayerId_BotOSD layer do not overlap objects in Graphic3d_ZLayerId_Default layer."
puts "==========="
vfont add [locate_data_file DejaVuSans.ttf] SansFont
pload MODELING VISUALIZATION
vinit View1
vclear
vaxo
text2brep tcc "Center" -font SansFont -height 30
vdisplay tcc -2d center -underlay
polyline lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
vdisplay lcc -2d center -underlay
text2brep tbl "Bottom-Left" -font SansFont -height 30
vdisplay tbl -2d bottomLeft 5 5 -underlay
polyline lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
vdisplay lbl -2d bottomLeft 3 3 -underlay
text2brep ttl "Top-Left" -font SansFont -height 30 -pos -27 0 0
vdisplay ttl -2d topLeft 30 30 -underlay
polyline ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
vdisplay ltl -2d topLeft 3 3 -underlay
text2brep ttr "Top-Right" -font SansFont -height 30 -pos -100 0 0
vdisplay ttr -2d topRight 30 30 -underlay
polyline ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
vdisplay ltr -2d topRight 3 3 -underlay
text2brep tbr "Bottom-Right" -font SansFont -height 30 -pos -165 0 0
vdisplay tbr -2d bottomRight 5 5 -underlay
polyline lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
vdisplay lbr -2d bottomRight 3 3 -underlay
box b 1 2 3
vdisplay b
vfit
vsetdispmode b 1
vdump ${imagedir}/${casename}.png