0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / bugs / vis / bug27359
1 puts "========"
2 puts "OCC27359"
3 puts "========"
4 puts ""
5 ##################################################################
6 puts "Visualization - add support of flipping for textured text"
7 ##################################################################
8
9 set anImage1 $imagedir/${casename}_1.png
10 set anImage2 $imagedir/${casename}_2.png
11 set anImage3 $imagedir/${casename}_3.png
12 set m_pi 3,14
13 set m_pi2 1,57
14
15 vfont add [locate_data_file DejaVuSans.ttf] SansFont
16
17 vinit
18 vclear
19 vright
20
21 set x 10
22 set y 50
23 set z 30
24
25 box b $x $y $z
26 vdisplay b
27 vtrihedron t
28
29 vdrawtext t0 "top left text\n on yoz" -pos $x 0 0 -color green -height 30 -plane 1 0 0 0 1 0 -flipping -valign top -halign left -font SansFont
30 vdrawtext t2 "center text" -pos 0 $y/2 $z/2 -color red -height 30 -plane 1 0 0 0 1 0 -flipping -valign center -halign center -font SansFont
31
32 vfit
33 vright
34 vdump $anImage1
35
36 vrotate $m_pi 0 0
37 vfit
38 vdump $anImage2
39
40 vright
41 vrotate 0 $m_pi 0
42 vfit
43 vdump $anImage3