1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug23539_2
mkrylova e3d4b87912 0031779: Visualization, AIS_ViewController - controller should handle selection schemes
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.
2021-03-04 19:43:13 +03:00

34 lines
617 B
Plaintext

puts "============"
puts "CR23539"
puts "============"
puts ""
#############################
## Test case for polygonal shift selection
#############################
box a 10 10 10
box b 50 50 50 10 10 10
vinit
vdisplay a b
vfit
vselmode 2 1
vselect 0 0
vselect 58 300
vselect 300 200 300 60 400 60 407 150 -xor
set NbSelected1 [vnbselected]
if { ${NbSelected1} != 13 } {
puts "Error : Polygonal shift selection doesn't work properly"
}
vselect 350 120 -xor
set NbSelected1 [vnbselected]
if { ${NbSelected1} != 12 } {
puts "Error : (case 2)"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png