bce206b8e5c67ba790599142a6bc307432d95035
[occt.git] / tests / bugs / vis / bug22048
1 puts "========"
2 puts "0022048: Visualization, AIS_InteractiveContext - single object selection should always clear multiple selection"
3 puts "========"
4 puts ""
5
6 pload MODELING VISUALIZATION
7 box b1  0  0  0 10 10 10
8 box b2 20 20 20 30 30 30
9 vclear
10 vinit View1
11 vaxo
12 vdisplay -dispMode 1 b1 b2
13 vfit
14 vselprops selHighlight -dispMode -1
15 vselect 0 0 400 400 1
16 if { [vreadpixel  50 300 rgb name] != "GRAY66"         } { puts "Error: b1 should be selected."}
17 if { [vreadpixel 300 200 rgb name] != "GRAY66"         } { puts "Error: b2 should be selected."}
18 vselect 200 200
19 if { [vreadpixel  50 300 rgb name] != "DARKGOLDENROD3" } { puts "Error: b1 should not be selected."}
20 if { [vreadpixel 300 200 rgb name] != "GRAY66"         } { puts "Error: b2 should be selected."}
21
22 vdump $imagedir/${casename}.png