520cde87 |
1 | puts "============" |
2 | puts "CR27757" |
3 | puts "Visualization - handle child objects in selection manager regardless of HasOwnPresentations() flag" |
4 | puts "============" |
5 | puts "" |
6 | |
7 | pload VISUALIZATION QAcommands |
8 | |
9 | vinit |
10 | |
11 | # create box object that has sphere as a child object |
12 | OCC27757 |
13 | vfit |
14 | |
15 | # check if the sphere was activated in selection manager |
16 | # and is selectable |
17 | vselect 120 245 |
18 | |
19 | if {[vnbselected] != "1"} { |
20 | puts "Error: no object was selected; the sphere must be selected!" |
21 | } |
22 | if {[vreadpixel 145 285 name] != "GRAY80 1"} { |
23 | puts "Error: the sphere is not highlighted with selection color!" |
24 | } |
25 | |
26 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |