1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027619: Improvement on manuipulation of data by TPrsStd_AISPresentation attribute.

The branch contains a fix on Undo/Redo for TPrsStd_AISPresentation attribute + an opportunity to deselect the interactive object.
getData() now calls FindAttribute(), the field myData disappeared.
A fix of regression on bug73_3.
A cleverer solution.
This commit is contained in:
vro
2016-10-13 13:45:03 +03:00
committed by apn
parent 0f5ea4b5f8
commit c4a2f61e57
3 changed files with 81 additions and 161 deletions

View File

@@ -39,6 +39,8 @@
#include <TDF_Tool.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Tool.hxx>
#include <TPrsStd_AISViewer.hxx>
#include <AIS_InteractiveContext.hxx>
// pour propagate
#include <TDocStd_XLinkTool.hxx>
@@ -227,6 +229,11 @@ static Standard_Integer DDocStd_Undo (Draw_Interpretor& di,Standard_Integer n, c
if (!D->Redo()) di << "Redo not done\n";
}
}
// Redraw the viewer.
Handle(AIS_InteractiveContext) IC;
if (TPrsStd_AISViewer::Find(D->Main(), IC))
IC->UpdateCurrentViewer();
return 0;
}