20 #ifndef XGUI_Selection_H
21 #define XGUI_Selection_H
25 #include <ModuleBase_Definitions.h>
26 #include <ModuleBase_ISelection.h>
28 #include <QModelIndexList>
29 #include <AIS_ListOfInteractive.hxx>
30 #include <NCollection_List.hxx>
31 #include <TopoDS_Shape.hxx>
33 #include <SelectMgr_IndexedMapOfOwner.hxx>
36 class SelectMgr_EntityOwner;
50 virtual QList<std::shared_ptr<ModuleBase_ViewerPrs>>
57 const Handle(SelectMgr_EntityOwner)& theOwner)
const;
61 virtual QList<std::shared_ptr<ModuleBase_ViewerPrs>>
getHighlighted()
const;
74 void selectedOwners(SelectMgr_IndexedMapOfOwner& theSelectedOwners)
const;
81 SelectMgr_IndexedMapOfOwner& theOwners)
const;
97 void getSelectedInViewer(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& thePresentations)
const;
104 void getSelectedInBrowser(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& thePresentations)
const;
109 #ifdef BEFORE_TRIHEDRON_PATCH
A class which provides access to selection.
Definition: ModuleBase_ISelection.h:44
virtual QModelIndexList selectedIndexes() const =0
Returns list of currently selected QModelIndexes.
virtual QObjectPtrList selectedPresentations() const =0
Returns list of currently selected results.
virtual QObjectPtrList selectedObjects() const =0
Returns list of features currently selected in object browser.
SelectionPlace
Types of the selection place, where the selection is obtained.
Definition: ModuleBase_ISelection.h:47
virtual void fillPresentation(std::shared_ptr< ModuleBase_ViewerPrs > &thePrs, const Handle &&theOwner) const =0
Fills the viewer presentation parameters by the parameters from the owner.
virtual ObjectPtr getSelectableObject(const Handle &&theOwner) const =0
Returns list of currently selected QModelIndexes.
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > getSelected(const SelectionPlace &thePlace=Browser) const =0
Returns a list of viewer selected presentations.
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > getHighlighted() const =0
Returns a list of viewer highlited presentations.
Presentation.
Definition: ModuleBase_ViewerPrs.h:37
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