+}
+
+QList<TopoDS_Shape> XGUI_SelectionMgr::findAllShapes(const ResultPtr& theResult) const
+{
+ QIntList aModes = myWorkshop->selectionActivate()->activeSelectionModes();
+ GeomShapePtr aResShape = theResult->shape();
+ TopoDS_Shape aShape = aResShape->impl<TopoDS_Shape>();
+ QList<TopoDS_Shape> aResult;
+ foreach(int aShapeType, aModes) {
+ if (aShapeType < TopAbs_SHAPE) {
+ TopExp_Explorer aExp(aShape, (TopAbs_ShapeEnum)aShapeType);
+ for (; aExp.More(); aExp.Next()) {
+ aResult.append(aExp.Current());
+ }
+ }
+ }
+ return aResult;