0023649: Visualization, AIS_LocalContext - make highlighting of already selected...
authoraba <aba@opencascade.com>
Thu, 14 Aug 2014 08:20:09 +0000 (12:20 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 14 Aug 2014 08:21:54 +0000 (12:21 +0400)
commitc398b00ed876f37c4d7d9b3fe25f3f3cce780270
treed383b6a38607f6978a8a7cd0d94edac29f82a1f0
parent5b98e25d8eb0f799f6096b55d1dfed50091e1641
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
17 files changed:
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_LocalContext.cdl
src/AIS/AIS_LocalContext.cxx
src/AIS/AIS_LocalContext_1.cxx
src/MeshVS/MeshVS_MeshOwner.cxx
src/SelectMgr/SelectMgr_EntityOwner.cdl
src/SelectMgr/SelectMgr_EntityOwner.cxx
src/SelectMgr/SelectMgr_EntityOwner.lxx
src/ViewerTest/ViewerTest_EventManager.cdl
src/ViewerTest/ViewerTest_EventManager.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug23649_1 [new file with mode: 0644]
tests/bugs/vis/bug23649_2 [new file with mode: 0644]
tests/bugs/vis/bug23649_3 [new file with mode: 0644]
tests/bugs/vis/bug23649_4 [new file with mode: 0644]
tests/bugs/vis/bug597_2