0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
[occt.git] / tests / bugs / vis / bug24837_2
CommitLineData
0717ddc1 1puts "============"
2puts "CR24837_2"
3puts "============"
4puts ""
5#######################################################################
6# Visualization - revise design and implementation of connected Interactive Objects
7#######################################################################
8
9pload MODELING VISUALIZATION
10box o1 -10 -10 -5 1 1 10
11box o2 10 10 -5 1 1 10
12box b1 0 0 0 1 2 3
13box b2 3 0 0 3 2 1
14vinit View1
15vclear
16vtop
17vsetdispmode 0
18vdisplay o1 o2
19vdisplay b1 b2
20vfit
29e2c6d2 21vdrawtext tb1 "b1" -pos 0 -3 3 -color 1.0 0.098 0.098 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font Arial
22vdrawtext tb2 "b2" -pos 3 0 3 -color 0.098 1.0 0.098 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font Arial
23vdrawtext bc_1 "bc_1" -pos 0 -9 3 -color 1.0 0.8823 0.8823 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font Arial
24vdrawtext bc_2 "bc_2" -pos 3 -6 3 -color 1.0 0.8823 0.8823 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font Arial
0717ddc1 25vsetdispmode 1
26set anImage ${imagedir}/${casename}_2_1.png
27vdump ${anImage}
28
29e2c6d2 29vsetmaterial b1 b2 tb1 tb2 plastic
30vsetcolor b1 tb1 RED
31vsetcolor b2 tb2 GREEN
0717ddc1 32set anImage ${imagedir}/${casename}_2_2.png
33vdump ${anImage}
34
35vsetlocation b1 0 -3 0
29e2c6d2 36vconnect bc 0 -6 0 b1 b2 tb1 tb2
0717ddc1 37set anImage ${imagedir}/${casename}_2_3.png
38vdump ${anImage}