X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Selection.h;h=4868a9a80f7ffad28785f15f05cc8d354a26d158;hb=61da4e89d2ec63daa429d304f928482a0e6fa0b7;hp=c6f92f5ff6d7cca053a2c8ef7efc8684800eabab;hpb=72ccabc2a906e229fe487dfeae61d38f921927d0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Selection.h b/src/XGUI/XGUI_Selection.h index c6f92f5ff..4868a9a80 100644 --- a/src/XGUI/XGUI_Selection.h +++ b/src/XGUI/XGUI_Selection.h @@ -16,41 +16,45 @@ #include #include -#include - class XGUI_Workshop; -class XGUI_EXPORT XGUI_Selection: public ModuleBase_ISelection +class XGUI_EXPORT XGUI_Selection : public ModuleBase_ISelection { -public: + public: XGUI_Selection(XGUI_Workshop* theWorkshop); /// Returns a list of viewer selected presentations /// \param theShapeTypeToSkip the shapes with this type will be skipped during the result list build /// \return list of presentations - std::list getSelected(int theShapeTypeToSkip = -1) const; + virtual QList getSelected(int theShapeTypeToSkip = -1) const; /// Returns a list of viewer highlited presentations /// \param theShapeTypeToSkip the shapes with this type will be skipped during the result list build /// \return list of presentations - std::list getHighlighted(int theShapeTypeToSkip = -1) const; + virtual QList getHighlighted(int theShapeTypeToSkip = -1) const; + + /** + * Returns list of currently selected objects + */ + virtual QList selectedObjects() const; /** - * Returns list of features currently selected in 3d viewer - */ - QFeatureList selectedFeatures() const; - + * Returns list of currently selected results + */ + virtual QList selectedPresentations() const; + //! Returns list of currently selected QModelIndexes - QModelIndexList selectedIndexes() const; + virtual QModelIndexList selectedIndexes() const; //! Returns list of currently selected AIS objects - void selectedAISObjects(AIS_ListOfInteractive& theList) const; + virtual void selectedAISObjects(AIS_ListOfInteractive& theList) const; //! Returns list of currently selected shapes - void selectedShapes(NCollection_List& theList) const; + virtual void selectedShapes(NCollection_List& theShapes, + std::list& theOwners) const; -private: + private: XGUI_Workshop* myWorkshop; }; -#endif \ No newline at end of file +#endif