X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Module.h;h=79379ffc49403e1734ece9fa633d3c26fbba883b;hb=43780ffac779af7f061513b0f6243f2edb73602c;hp=44322b35952a638c63a84d89646451fc7db7f695;hpb=22e6328e4977a1ec97e0b96778e53abba0244edc;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Module.h b/src/PartSet/PartSet_Module.h index 44322b359..79379ffc4 100644 --- a/src/PartSet/PartSet_Module.h +++ b/src/PartSet/PartSet_Module.h @@ -5,9 +5,10 @@ #include #include +#include #include -#include #include +#include #include #include @@ -45,11 +46,6 @@ Q_OBJECT /// \param theCmdId the operation name //virtual void launchOperation(const QString& theCmdId); - /// Activates the feature in the displayer - /// \param theFeature the feature instance to be displayed - /// \param isUpdateViewer the flag whether the viewer should be updated - void activateFeature(ObjectPtr theFeature, const bool isUpdateViewer); - /// Updates current operation preview, if it has it. /// \param theCmdId the operation name void updateCurrentPreview(const std::string& theCmdId); @@ -61,13 +57,9 @@ Q_OBJECT XGUI_Workshop* xWorkshop() const; - /// Display the shape and activate selection of sub-shapes - /// \param theFeature a feature instance - /// \param theShape a shape - /// \param theMode a list of local selection modes - /// \param isUpdateViewer the parameter whether the viewer should be update immediatelly - void activateInLocalContext(ObjectPtr theFeature, const std::list& theModes, - const bool isUpdateViewer = true); + + /// Returns list of selection modes for the given object for sketch operation + static QIntList sketchSelectionModes(ObjectPtr theFeature); public slots: void onFeatureTriggered(); @@ -123,8 +115,9 @@ Q_OBJECT /// \param theFeatures a list of features to be selected void onSetSelection(const QList& theFeatures); - /// SLOT, to close the viewer local context - void onCloseLocalContext(); + /// SLOT, Defines Sketch editing mode + /// \param thePln - plane of current sketch + void setSketchingMode(const gp_Pln& thePln); /// SLOT, to visualize the feature in another local context mode /// \param theFeature the feature to be put in another local context mode @@ -148,14 +141,16 @@ Q_OBJECT //! Edits the feature void editFeature(FeaturePtr theFeature); + gp_Pln getSketchPlane(FeaturePtr theSketch) const; + private: //XGUI_Workshop* myWorkshop; PartSet_Listener* myListener; std::map myFeaturesInFiles; - /// A filter which provides selection within a current document or whole PartSet - Handle(XGUI_ShapeDocumentFilter) myDocumentShapeFilter; + Handle(StdSelect_FaceFilter) myPlaneFilter; + Handle(ModuleBase_ShapeInPlaneFilter) mySketchFilter; }; #endif