0024837: Visualization - revise design and implementation of connected Interactive...
authorduv <duv@opencascade.com>
Thu, 28 Aug 2014 12:38:28 +0000 (16:38 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 28 Aug 2014 13:38:17 +0000 (17:38 +0400)
commit0717ddc13291e099f92171b66858fb6718bb2ca8
tree193f3f2f22cda483ce943e29498623ef98695eaf
parente3e895af61fc775f47c654cc0b0e7f06c6b05001
0024837: Visualization - revise design and implementation of connected Interactive Objects
0023422: Selection problems when using SetLocation.
0024756: AIS_ConnectedInteractive does not support nested AIS_ConnectedInteractive
0025103: Visualization - Regression in interactive detection

Each PrsMgr_PresentableObject has list of PrsMgr _PresentableObject called myChildren.
Transformation PrsMgr_PresentableObject applied to its children every time when its own transformation affected. This hierarchy does not propagate to Graphic3d level and below.

PrsMgr_PresentableObject send its combined (according to hierarchy) transform down to Graphic3d_Structure.

AIS_ConnectedInteractive and AIS_MultiplyConnectedInteractive are reused but behavior has been changed.

AIS_ConnectedInteractive now is an instance of object. It reuses geometry of connected object but have own transformation, material, visibility flag etc. This connection propagated down to OpenGl level to OpenGl_Structure. For this task old “connected” mechanism has been reused.

AIS_MultiplyConnectedInteractive represents assembly which doesn’t have its own presentation. Assemblies are able to participate is scene hierarchy and intended to handle a grouped set of instanced objects. It behaves as single object in terms of selection. It applies high level transform to all sub-elements since it located above in the hierarchy.

All AIS_MultiplyConnectedInteractive are able to have child assemblies. Deep copy of object instances performed when one assembly attached to another.

Correction test cases for CR24837

Test cases for issue CR23422

Test cases for issue CR24756

Test cases for issue CR25103

Viewer3d sample fixed.
62 files changed:
samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.cpp
src/AIS/AIS.cdl
src/AIS/AIS_ConnectedInteractive.cdl
src/AIS/AIS_ConnectedInteractive.cxx
src/AIS/AIS_ConnectedShape.cdl [deleted file]
src/AIS/AIS_ConnectedShape.cxx [deleted file]
src/AIS/AIS_InteractiveContext.cdl
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_InteractiveObject.cdl
src/AIS/AIS_InteractiveObject.cxx
src/AIS/AIS_LocalContext.cdl
src/AIS/AIS_LocalContext_1.cxx
src/AIS/AIS_MultipleConnectedInteractive.cdl
src/AIS/AIS_MultipleConnectedInteractive.cxx
src/AIS/AIS_MultipleConnectedInteractive.lxx
src/AIS/AIS_MultipleConnectedShape.cdl [deleted file]
src/AIS/AIS_MultipleConnectedShape.cxx [deleted file]
src/AIS/AIS_MultipleConnectedShape.lxx [deleted file]
src/AIS/AIS_Shape.cxx
src/AIS/AIS_Trihedron.cdl
src/AIS/AIS_Trihedron.cxx
src/Graphic3d/Graphic3d_Structure.cdl
src/Graphic3d/Graphic3d_Structure.cxx
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_Structure.hxx
src/OpenGl/OpenGl_Workspace.hxx
src/OpenGl/OpenGl_Workspace_Raytrace.cxx [changed mode: 0755->0644]
src/PrsMgr/FILES
src/PrsMgr/PrsMgr.cdl
src/PrsMgr/PrsMgr_ListOfPresentableObjects.hxx [new file with mode: 0644]
src/PrsMgr/PrsMgr_PresentableObject.cdl
src/PrsMgr/PrsMgr_PresentableObject.cxx
src/PrsMgr/PrsMgr_PresentableObject.lxx
src/PrsMgr/PrsMgr_PresentationManager.cdl
src/PrsMgr/PrsMgr_PresentationManager.cxx
src/QABugs/QABugs_11.cxx
src/Select3D/Select3D_SensitiveEntity.cdl
src/Select3D/Select3D_SensitiveEntity.cxx
src/SelectBasics/SelectBasics_EntityOwner.cdl
src/SelectMgr/SelectMgr_EntityOwner.cdl
src/SelectMgr/SelectMgr_EntityOwner.cxx
src/SelectMgr/SelectMgr_SelectableObject.cdl
src/SelectMgr/SelectMgr_SelectableObject.cxx
src/SelectMgr/SelectMgr_SelectionManager.cxx
src/TPrsStd/TPrsStd_AxisDriver.cxx
src/TPrsStd/TPrsStd_ConstraintDriver.cxx
src/TPrsStd/TPrsStd_GeometryDriver.cxx
src/TPrsStd/TPrsStd_NamedShapeDriver.cxx
src/TPrsStd/TPrsStd_PlaneDriver.cxx
src/TPrsStd/TPrsStd_PointDriver.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug12121
tests/bugs/vis/bug23422 [new file with mode: 0644]
tests/bugs/vis/bug24358
tests/bugs/vis/bug24756 [new file with mode: 0644]
tests/bugs/vis/bug24837_1 [new file with mode: 0644]
tests/bugs/vis/bug24837_2 [new file with mode: 0644]
tests/bugs/vis/bug25103 [new file with mode: 0644]
tests/v3d/raytrace/connected