0027957: Visualization, AIS_InteractiveContext - protect from displaying the same...
authorkgv <kgv@opencascade.com>
Thu, 13 Oct 2016 12:24:23 +0000 (15:24 +0300)
committerapn <apn@opencascade.com>
Fri, 21 Oct 2016 08:12:03 +0000 (11:12 +0300)
commit2ec85268a1e5790ad6f7d6d05577c493ce8547a2
treec2eef8a2906d29241bc3695ff0ed01f665c504e7
parent1be4179947116e54658924f0149d3f35743a899a
0027957: Visualization, AIS_InteractiveContext - protect from displaying the same AIS_InteractiveObject within multiple contexts

AIS_InteractiveContext methods adding object to the context now throws Standard_ProgramError exception
if object has been already displayed in another context.
AIS_InteractiveContext::Remove() now NULLifies context assigned to the object.

AIS_InteractiveContext now inherits from Standard_Transient instead of deprecated MMgt_TShared
and defines C++ destructor instead of method Delete().

AIS_InteractiveObject - undocumented property State() has been removed.
Undocumented property Users() has been moved to AIS_IdenticRelation.

Draw Harness command vclose now clear AIS_InteractiveContext content
before nullifying it to ensure that objects have been properly removed.

AIS_MultipleConnectedInteractive now overrides method ::SetContext()
to assign context for children objects.
17 files changed:
src/AIS/AIS_IdenticRelation.hxx
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext.hxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_InteractiveContext_3.cxx
src/AIS/AIS_InteractiveObject.cxx
src/AIS/AIS_InteractiveObject.hxx
src/AIS/AIS_MultipleConnectedInteractive.cxx
src/AIS/AIS_MultipleConnectedInteractive.hxx
src/AIS/AIS_PToContext.hxx [deleted file]
src/AIS/FILES
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug23670_1 [deleted file]
tests/bugs/vis/bug24133_2
tests/bugs/vis/bug24133_3
tests/bugs/vis/bug24133_4
tests/bugs/vis/bug2883_2 [deleted file]