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