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

0032165: Visualization - remove obsolete method AIS_InteractiveContext::PurgeViewer()

This commit is contained in:
kgv
2021-02-25 12:41:51 +03:00
committed by bugmaster
parent decbff0dfd
commit 53219061ca
5 changed files with 0 additions and 118 deletions

View File

@@ -4049,47 +4049,6 @@ void AIS_InteractiveContext::ClearActiveSensitive (const Handle(V3d_View)& theVi
myMainSel->ClearSensitive (theView);
}
//=======================================================================
//function : PurgeDisplay
//purpose :
//=======================================================================
Standard_Integer AIS_InteractiveContext::PurgeDisplay()
{
Standard_Integer NbStr = PurgeViewer(myMainVwr);
myMainVwr->Update();
return NbStr;
}
//=======================================================================
//function : PurgeViewer
//purpose :
//=======================================================================
Standard_Integer AIS_InteractiveContext::PurgeViewer (const Handle(V3d_Viewer)& theViewer)
{
Handle(Graphic3d_StructureManager) GSM = theViewer->StructureManager();
Standard_Integer aNbCleared = 0;
Graphic3d_MapOfStructure SOS;
GSM->DisplayedStructures (SOS);
for (Graphic3d_MapOfStructure::Iterator It(SOS); It.More();It.Next())
{
Handle(Graphic3d_Structure) G = It.Key();
Standard_Address anOwner = G->Owner();
if (anOwner == NULL)
{
G->Erase();
G->Clear();// it means that it is not referenced as a presentation of InterfactiveObject...
++aNbCleared;
}
Handle(AIS_InteractiveObject) IO = (AIS_InteractiveObject* )anOwner;
if (!myObjects.IsBound (IO))
{
G->Erase();
++aNbCleared;
}
}
return aNbCleared;
}
//=======================================================================
//function : IsImmediateModeOn
//purpose :