0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug25783_1
CommitLineData
af65fb19 1puts "============"
2puts "OCC25783_1"
3puts "Draw 2D objects."
4puts "============"
5puts ""
6
0d828ac8 7pload MODELING VISUALIZATION
6fb1a930 8vfont add [locate_data_file DejaVuSans.ttf] SansFont
9
af65fb19 10vinit View1
11vclear
12vaxo
13
14# display polyline in overlay
6fb1a930 15text2brep tcc "Center" -font SansFont -height 30
778cd667 16vdisplay tcc -2d center -osd
af65fb19 17polyline lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
778cd667 18vdisplay lcc -2d center -overlay
af65fb19 19
20# display polyline in overlay in the bottom left corner of the view
6fb1a930 21text2brep tbl "Bottom-Left" -font SansFont -height 30
778cd667 22vdisplay tbl -2d bottomLeft 5 5 -osd
af65fb19 23polyline lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
778cd667 24vdisplay lbl -2d bottomLeft 3 3 -overlay
af65fb19 25
26# display polyline in overlay in the top left corner of the view
6fb1a930 27text2brep ttl "Top-Left" -font SansFont -height 30 -pos -27 0 0
778cd667 28vdisplay ttl -2d topLeft 30 30 -osd
af65fb19 29polyline ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
778cd667 30vdisplay ltl -2d topLeft 3 3 -overlay
af65fb19 31
32# display polyline in overlay in the top right corner of the view
6fb1a930 33text2brep ttr "Top-Right" -font SansFont -height 30 -pos -100 0 0
778cd667 34vdisplay ttr -2d topRight 30 30 -osd
af65fb19 35polyline ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
778cd667 36vdisplay ltr -2d topRight 3 3 -overlay
af65fb19 37
38# display polyline in overlay in the bottom right corner of the view
6fb1a930 39text2brep tbr "Bottom-Right" -font SansFont -height 30 -pos -165 0 0
778cd667 40vdisplay tbr -2d bottomRight 5 5 -osd
af65fb19 41polyline lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
778cd667 42vdisplay lbr -2d bottomRight 3 3 -overlay
af65fb19 43
44vdump ${imagedir}/${casename}.png