0026159: Visualization - revise tolerance implementation for selection
authorvpa <vpa@opencascade.com>
Wed, 6 May 2015 12:35:36 +0000 (15:35 +0300)
committerabv <abv@opencascade.com>
Fri, 8 May 2015 05:51:48 +0000 (08:51 +0300)
commit28ee613b27e67e293218f31762850649d7bda805
tree5b491222aff85dd2c18998e04b4e9f81c6308d56
parentfe3a29bc9a8107aa16d99a41f1e7f9761c17c1f1
0026159: Visualization - revise tolerance implementation for selection

Max tolerance is now applied to all objects and entities by default;
if there is an entity with a lower tolerance, selecting frustum will be recalculated for it.
The ability to set sensitivity for each entity individually is moved to protected section of SelectBasics_SensitiveEntity
SetPixelTolerance from AIS_InteractiveContext now sets custom tolerance that is applied to all sensitives.
Added -unset option to vselprecision command to disable custom tolerances.
Test case for issue #26159
15 files changed:
src/AIS/AIS_InteractiveContext.cdl
src/AIS/AIS_InteractiveContext.cxx
src/IVtkOCC/IVtkOCC_ViewerSelector.cxx
src/SelectBasics/SelectBasics_SensitiveEntity.cdl
src/SelectMgr/SelectMgr_BaseFrustum.hxx
src/SelectMgr/SelectMgr_RectangularFrustum.cxx
src/SelectMgr/SelectMgr_RectangularFrustum.hxx
src/SelectMgr/SelectMgr_SelectingVolumeManager.cxx
src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx
src/SelectMgr/SelectMgr_ViewerSelector.cxx
src/SelectMgr/SelectMgr_ViewerSelector.hxx
src/StdSelect/StdSelect_ViewerSelector3d.cxx
src/ViewerTest/ViewerTest.cxx
tests/bugs/vis/bug24564
tests/bugs/vis/bug26159 [new file with mode: 0644]