// DO the selection
int i = 1, n = ownersmap.Extent();
bool isAutoHilight = ic->AutomaticHilight();
- ic->SetAutomaticHilight(Standard_False); // for better performance
+ ic->SetAutomaticHilight(Standard_False); //Bug 17269: for better performance
for (; i <= n; i++)
{
Handle(SelectMgr_EntityOwner) owner = ownersmap( i );
else
ic->AddOrRemoveSelected( Handle(AIS_InteractiveObject)::DownCast(owner->Selectable()), false );
}
- ic->SetAutomaticHilight(isAutoHilight); // restore
-
+ ic->SetAutomaticHilight(isAutoHilight); //Bug 17269: restore mode
ic->HilightSelected(/*updateviewer*/Standard_True);
//vw->update();
if (app) {
LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
if (aSelMgr) {
+ /*
aSelMgr->selectedObjects(aSelIOs);
if ( aSelIOs.Extent() == 1 ) {
if ( aResult && !anObj->_is_nil() )
aSelMgr->GetIndexes( aSelIOs.First(), aMapIndex );
}
+ */
+ QMap<QString, TColStd_IndexedMapOfInteger> aMap;
+ //MapEntryOfMapOfInteger& aMap;
+ aSelMgr->selectedSubOwners(aMap);
+ if (aMap.size() == 1)
+ aMapIndex = aMap.begin().data();
}
}
return;
TColStd_MapOfInteger anIds;
- //TColStd_IndexedMapOfInteger anIds;
myBusy = true;
LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
aSelMgr->clearSelected();
aSelMgr->AddOrRemoveIndex(aSh->getIO(), anIds, false);
- //SUIT_DataOwnerPtrList aList;
- //Handle(SALOME_InteractiveObject) IObject = aSh->getIO();
- //for (int i = 1; i <= anIds.Extent(); i++)
- // aList.append(new LightApp_DataSubOwner(QString(IObject->getEntry()), anIds(i)));
- //aSelMgr->setSelected(aList, /*append*/false);
- ////aSelMgr->selectObjects(aSh->getIO(), anIds, /*append*/false);
myBusy = false;