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>
36class 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;
77 void selectedOwners(SelectMgr_IndexedMapOfOwner& theSelectedOwners)
const;
84 SelectMgr_IndexedMapOfOwner& theOwners)
const;
100 void getSelectedInViewer(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& thePresentations)
const;
107 void getSelectedInBrowser(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& thePresentations)
const;
114 void getSelectedInSketchConstraintsBrowser(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& thePresentations)
const;
119#ifdef BEFORE_TRIHEDRON_PATCH
A class which provides access to selection.
Definition: ModuleBase_ISelection.h:44
virtual QMap< ResultPtr, QList< GeomShapePtr > > selectedObjectsAndSubObjects() const =0
Returns map of selected results and their selected subobjects.
virtual QModelIndexList selectedIndexes() const =0
Returns list of currently selected QModelIndexes.
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > getHighlighted() const =0
Returns a list of viewer highlited presentations.
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 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 Handle getIO(const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs)=0
Return the IO from the viewer presentation.
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > getSelected(const SelectionPlace &thePlace=Browser) const =0
Returns a list of viewer selected presentations.
virtual ObjectPtr getSelectableObject(const Handle &theOwner) const =0
Returns list of currently selected QModelIndexes.
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:83