1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug26209
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
672 B
Plaintext

puts "============"
puts "CR26209"
puts "============"
puts ""
##########################################################################################
puts "Visualization - provide a method to fit view to the specific bounding box"
##########################################################################################
pload VISUALIZATION MODELING
box b 1 1 1
vinit View1
vdisplay b
vfit
vselmode b 2 1
vselmode b 1 1
vselect 330 334
vfit -selected
checkcolor 330 334 0 0 0
checkcolor 330 131 0.8 0.8 0.8
vselect 0 0
vfit
vselect 29 104
vselect 204 2 -xor
vfit -selected
checkcolor 29 104 0 0 0
checkcolor 2 317 0.8 0.8 0.8
vdump ${imagedir}/${casename}.png