- if (isVisible(theObject)) {
- Handle(AIS_InteractiveContext) aContext = AISContext();
- if (aContext.IsNull())
- return;
-
- AISObjectPtr anObj = myResult2AISObjectMap[theObject];
- Handle(AIS_InteractiveObject) anAIS = anObj->impl<Handle(AIS_InteractiveObject)>();
- aContext->Deactivate(anAIS);
-#ifdef DEBUG_USE_CLEAR_OUTDATED_SELECTION
- aContext->LocalContext()->ClearOutdatedSelection(anAIS, true);
- updateViewer();
-#endif
- }
-}
-
-/*void XGUI_Displayer::activate(ObjectPtr theFeature)
-{
- activate(theFeature, myActiveSelectionModes);
-}
-
-void XGUI_Displayer::activate(ObjectPtr theObject, const QIntList& theModes)
-{
-#ifdef DEBUG_ACTIVATE
- FeaturePtr aFeature = ModelAPI_Feature::feature(theObject);
-
- if (aFeature.get() != NULL) {
- QIntList aModes;
- getModesOfActivation(theObject, aModes);
-
-
- qDebug(QString("activate feature: %1, theModes: %2, myActiveSelectionModes: %3, getModesOf: %4").
- arg(aFeature->data()->name().c_str()).
- arg(theModes.size()).
- arg(myActiveSelectionModes.size()).
- arg(aModes.size()).toStdString().c_str());
- }
+#ifdef DEBUG_DEACTIVATE
+ QString anInfoStr = ModuleBase_Tools::objectInfo(theObject);
+ qDebug(QString("deactivate: myActiveSelectionModes[%1]: %2, objects = ").
+ arg(myActiveSelectionModes.size()).arg(qIntListInfo(myActiveSelectionModes)).
+ arg(anInfoStr).
+ toStdString().c_str());