- // restore the sorting flag and perform the sort of selection
- //if (!aSelector.IsNull()) {
- // aSelector->SetUpdateSortPossible(isUpdateSortPossible);
- // aSelector->UpdateSort();
- //}
-}
-
-
-void XGUI_Displayer::deactivateObjects()
-{
- myActiveSelectionModes.clear();
- Handle(AIS_InteractiveContext) aContext = AISContext();
- // Open local context if there is no one
- if (!aContext->HasOpenedContext())
- return;
-
- //aContext->NotUseDisplayedObjects();
- AIS_ListOfInteractive aPrsList;
- ::displayedObjects(aContext, aPrsList);
-
- AIS_ListIteratorOfListOfInteractive aLIt;
- //Handle(AIS_Trihedron) aTrihedron;
- Handle(AIS_InteractiveObject) anAISIO;
- for(aLIt.Initialize(aPrsList); aLIt.More(); aLIt.Next()){
- anAISIO = aLIt.Value();
- aContext->Deactivate(anAISIO);
-#ifdef DEBUG_USE_CLEAR_OUTDATED_SELECTION
- aContext->LocalContext()->ClearOutdatedSelection(anAISIO, true);