mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
- implementation of additional selection scheme, mainly to deselect single selected object.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
puts "========"
|
|
puts "0032205: Visualization - implementing new selection scheme in context - replace extra"
|
|
puts "========"
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
box b1 0 0 0 10 10 10
|
|
box b2 20 20 20 30 30 30
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
vdisplay -dispMode 1 b1 b2
|
|
vfit
|
|
vselprops selHighlight -dispMode -1
|
|
vselect 0 0 400 400 -xor
|
|
if { ![string match "*Selected*" [vstate b1]] } { puts "Error: b1 should be selected."}
|
|
if { ![string match "*Selected*" [vstate b2]] } { puts "Error: b2 should be selected."}
|
|
vselect 200 200 -replaceExtra
|
|
if { [string match "*Selected*" [vstate b1]] } { puts "Error: b1 should not be selected."}
|
|
if { ![string match "*Selected*" [vstate b2]] } { puts "Error: b2 should be selected."}
|
|
vselect 200 200 -replaceExtra
|
|
if { [string match "*Selected*" [vstate b1]] } { puts "Error: b1 should not be selected."}
|
|
if { [string match "*Selected*" [vstate b2]] } { puts "Error: b2 should not be selected."}
|
|
vselect 200 200 -replaceExtra
|
|
if { [string match "*Selected*" [vstate b1]] } { puts "Error: b1 should not be selected."}
|
|
if { ![string match "*Selected*" [vstate b2]] } { puts "Error: b2 should be selected."}
|
|
|
|
vdump $imagedir/${casename}.png
|