- // Close context if it was opened in order to clear stsndard selection modes
- //aDisp->closeLocalContexts(false);
- //aDisp->openLocalContext();
- // Convert shape types to selection types
- QIntList aModes;
- foreach(int aType, theTypes) {
- if (aType > TopAbs_SHAPE)
- aModes.append(aType);
- else
- aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)aType));
- }
- aDisp->activateObjects(aModes);
- //TODO: We have to open Local context because at neutral point filters don't work (bug 25340)
- //aDisp->addSelectionFilter(myDocumentShapeFilter);