20 #ifndef XGUI_SelectionMgr_H
21 #define XGUI_SelectionMgr_H
24 #include <ModuleBase_Definitions.h>
25 #include <ModuleBase_ISelection.h>
26 #include <ModelAPI_Feature.h>
28 #include <QModelIndexList>
30 #include <AIS_InteractiveObject.hxx>
31 #include <AIS_ListOfInteractive.hxx>
32 #include <NCollection_List.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <SelectMgr_IndexedMapOfOwner.hxx>
61 return myLastSelectionPlace;
65 void connectViewers();
70 void setSelectedOwners(
const SelectMgr_IndexedMapOfOwner& theSelectedOwners,
74 void clearSelection();
79 void setSelected(
const QList<std::shared_ptr<ModuleBase_ViewerPrs> >& theValues);
90 std::list<FeaturePtr> getSelectedFeatures();
98 void onObjectBrowserSelection();
101 void onViewerSelection();
107 void convertToObjectBrowserSelection(
108 const QList<std::shared_ptr<ModuleBase_ViewerPrs> >& theValues, QObjectPtrList& theObjects);
110 QList<TopoDS_Shape> findAllShapes(
const ResultPtr& theResult)
const;
SelectionPlace
Types of the selection place, where the selection is obtained.
Definition: ModuleBase_ISelection.h:47
Object browser window object.
Definition: XGUI_ObjectsBrowser.h:149
Selection manager.
Definition: XGUI_SelectionMgr.h:46
XGUI_Selection * selection() const
Returns current selection.
Definition: XGUI_SelectionMgr.h:55
void selectionChanged()
Emited when selection in a one of viewers was changed.
Implementation of ModuleBase_ISelection interface.
Definition: XGUI_Selection.h:42
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:82