X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ModuleConnector.h;h=8a869f1d0db026bc03fafe78162c78df67dad92e;hb=f57633e7e47026f501b94c38989e39450a946ce4;hp=054ad0872e5db2944c72c4c2cf2f89dd3873922b;hpb=703a9a0cd860fae14969ce510ed06ae13979298c;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ModuleConnector.h b/src/XGUI/XGUI_ModuleConnector.h index 054ad0872..8a869f1d0 100644 --- a/src/XGUI/XGUI_ModuleConnector.h +++ b/src/XGUI/XGUI_ModuleConnector.h @@ -8,6 +8,7 @@ #include "XGUI.h" #include #include +#include class Handle_AIS_InteractiveContext; class XGUI_Workshop; @@ -43,10 +44,23 @@ Q_OBJECT //! Returns currently active operation virtual ModuleBase_Operation* currentOperation() const; + //! Returns AIS opbject by data object + virtual AISObjectPtr findPresentation(const ObjectPtr& theObject) const; + + //! Returns data object by AIS + virtual ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const; + + //! Select features clearing previous selection. + //! If the list is empty then selection will be cleared + virtual void setSelected(const QList& theFeatures); + XGUI_Workshop* workshop() const { return myWorkshop; } - private: +private: XGUI_Workshop* myWorkshop; + + /// A filter which provides selection within a current document or whole PartSet + Handle(ModuleBase_ShapeDocumentFilter) myDocumentShapeFilter; }; #endif