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/bug597_2
aba c398b00ed8 0023649: Visualization, AIS_LocalContext - make highlighting of already selected objects consistent with and without Shift modifier
1) Add SelectMgr_EntityOwner::IsSelected() and  SelectMgr_EntityOwner::SetSelected() methods to determine if corresponding  entity is selected.
    They replace functionality of SelectMgr_EntityOwner::State() methods that are deprecated now.
2) AIS_InteractiveContext::ToHilightSelected() and AIS_InteractiveContext::SetToHilightSelected() is to be used to enable highlighting of selected objects.
3) By default selected objects are highlighted (new behavior)
4) Add ViewerTest_ViewerCommands: vhighlightselected command to enable/disable 'highlight selected objects' mode.
5) AIS_LocalContext, AIS_InteractiveContext : style changes in Select and ShiftSelect methods.
6) Add test cases /bugs/vis bug23649_1 and  /bugs/vis bug23649_2 to test highlighting of selected objects in local context.
7) Add test cases /bugs/vis bug23649_3 and  /bugs/vis bug23649_4  to test highlighting of selected objects in neutral point.

Updated test case
2014-08-14 12:21:54 +04:00

37 lines
683 B
Plaintext
Executable File

if { [array get env os_type] != "" } {
set os $env(os_type)
}
if { [string compare $os "windows"] != 0 } {
}
puts "=================================="
puts "BUC60569"
puts "OCC597"
puts "=================================="
puts "It takes visual check for this BUG"
puts "=================================="
puts ""
restore [locate_data_file buc60569a.rle] result
tclean result
vinit
vhighlightselected 0
checkshape result
BUC60569 result
vfit
vselect 250 190
vselect 180 350 1
vmoveto 250 190
set x_coord 335
set y_coord 331
checkcolor $x_coord $y_coord 0.8 0.8 0.8
if {$stat != 1} {
puts "Error : The right face is highlighted by Move To command."
}
set only_screen 1