X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Selection.h;h=f766841d6edea79f9134a863816e55bd52b400ad;hb=9c54fb01877c455abb5b5ff22e384468f795b328;hp=c411d5ff09abea1af10db7caa360b173b5d1fba1;hpb=b0f5bf555698b982ac2c294d9ccf28bc21865ad3;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Selection.h b/src/XGUI/XGUI_Selection.h index c411d5ff0..f766841d6 100644 --- a/src/XGUI/XGUI_Selection.h +++ b/src/XGUI/XGUI_Selection.h @@ -22,9 +22,15 @@ class XGUI_Workshop; +/** +* \ingroup GUI +* Implementation of \ref ModuleBase_ISelection interface. +*/ class XGUI_EXPORT XGUI_Selection : public ModuleBase_ISelection { public: + /// Constructor + /// \param theWorkshop reference to workshop instance XGUI_Selection(XGUI_Workshop* theWorkshop); /// Returns a list of viewer selected presentations @@ -57,14 +63,16 @@ class XGUI_EXPORT XGUI_Selection : public ModuleBase_ISelection virtual void selectedShapes(NCollection_List& theShapes, std::list& theOwners) const; + //! Returns list of currently selected owners + /// \return list of owners + void selectedOwners(SelectMgr_IndexedMapOfOwner& theSelectedOwners) const; + //! Returns a list of selection entity owners of the interactive object /// It depends on the modes, in which the object is activated in the context /// \param theObject an object - /// \param theContext a viewer interactive context /// \param theOwners a map of entity owners - static void entityOwners(const Handle_AIS_InteractiveObject& theObject, - const Handle_AIS_InteractiveContext& theContext, - SelectMgr_IndexedMapOfOwner& theOwners); + void entityOwners(const Handle_AIS_InteractiveObject& theObject, + SelectMgr_IndexedMapOfOwner& theOwners) const; private: XGUI_Workshop* myWorkshop;