1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027680: Visualization - AIS_InteractiveContext::Remove() should remove all presentation of the object

This commit is contained in:
isk
2016-08-01 15:30:40 +03:00
committed by bugmaster
parent 6d0e6be5a2
commit e2d7642f14
4 changed files with 23 additions and 21 deletions

View File

@@ -2484,17 +2484,8 @@ void AIS_InteractiveContext::ClearGlobal (const Handle(AIS_InteractiveObject)& t
Handle(AIS_GlobalStatus) aStatus = myObjects (theIObj);
unhighlightOwners (theIObj);
for (TColStd_ListIteratorOfListOfInteger aDispModeIter (aStatus->DisplayedModes()); aDispModeIter.More(); aDispModeIter.Next())
{
myMainPM->Erase (theIObj, aDispModeIter.Value());
myMainPM->Clear (theIObj, aDispModeIter.Value());
}
if (aStatus->IsHilighted()
&& theIObj->HasHilightMode())
{
myMainPM->Unhighlight (theIObj, theIObj->HilightMode());
}
myMainPM->Erase (theIObj, -1);
// Object removes from Detected sequence
for(Standard_Integer aDetIter = 1; aDetIter < myAISDetectedSeq.Length(); ++aDetIter)
@@ -2555,7 +2546,6 @@ void AIS_InteractiveContext::ClearGlobalPrs (const Handle(AIS_InteractiveObject)
}
myMainPM->Erase (theIObj, theMode);
myMainPM->Clear (theIObj, theMode);
}
if (aStatus->GraphicStatus() == AIS_DS_Displayed