0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynami...
[occt.git] / tests / bugs / vis / bug27359
CommitLineData
3f1eb0ab 1puts "========"
2puts "OCC27359"
3puts "========"
4puts ""
5##################################################################
6puts "Visualization - add support of flipping for textured text"
7##################################################################
8
9set anImage1 $imagedir/${casename}_1.png
10set anImage2 $imagedir/${casename}_2.png
11set anImage3 $imagedir/${casename}_3.png
12set m_pi 3,14
13set m_pi2 1,57
14
15vfont add [locate_data_file DejaVuSans.ttf] SansFont
16
17vinit
18vclear
19vright
20
21set x 10
22set y 50
23set z 30
24
25box b $x $y $z
26vdisplay b
27vtrihedron t
28
29vdrawtext 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
30vdrawtext 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
32vfit
33vright
34vdump $anImage1
35
36vrotate $m_pi 0 0
37vfit
38vdump $anImage2
39
40vright
41vrotate 0 $m_pi 0
42vfit
43vdump $anImage3