mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Added AIS_ViewController::MouseSelectionSchemes() property defining map of selection schemes for mouse+modifier combinations. IsXOR flag has been replaced by AIS_SelectionScheme in interfaces. Rubber-band selection with Shift key pressed now applies XOR selection scheme in in Draw Harness. Command vselect has been extended to specify selection scheme by name.
39 lines
607 B
Plaintext
Executable File
39 lines
607 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC727"
|
|
puts "============"
|
|
puts ""
|
|
#############################
|
|
## The second object can not be deselected.
|
|
#############################
|
|
|
|
box a 10 10 10
|
|
box b 50 50 50 10 10 10
|
|
|
|
vinit
|
|
vdisplay a
|
|
vdisplay b
|
|
vfit
|
|
|
|
set x1 60
|
|
set y1 300
|
|
set x2 350
|
|
set y2 120
|
|
|
|
vselect 0 0
|
|
vselect ${x1} ${y1}
|
|
vselect ${x2} ${y2} -xor
|
|
|
|
set NbSelected1 [vnbselected]
|
|
if { ${NbSelected1} != 2 } {
|
|
puts "Error : (case 1)"
|
|
}
|
|
|
|
vselect ${x2} ${y2} -xor
|
|
|
|
set NbSelected1 [vnbselected]
|
|
if { ${NbSelected1} != 1 } {
|
|
puts "Error : (case 2)"
|
|
}
|
|
|
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|