X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_SketcherMgr.h;h=01789c136b6e4a46054a215006aadffb5aa58e14;hb=c910e9e2e9e68bc1a9f857d555a0201c2c4c75f1;hp=dc68f283a36eae66389493b656241dca053e7876;hpb=c9b975947df05917fbcf944c9546debda1f174e7;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_SketcherMgr.h b/src/PartSet/PartSet_SketcherMgr.h index dc68f283a..01789c136 100644 --- a/src/PartSet/PartSet_SketcherMgr.h +++ b/src/PartSet/PartSet_SketcherMgr.h @@ -102,6 +102,8 @@ public: /// \return a boolean value static bool isDistanceOperation(ModuleBase_Operation* theOperation); + bool isMouseOverWindow() { return myIsMouseOverWindow; } + /// Returns current Sketch feature/ Returns NULL if there is no launched sketch operation CompositeFeaturePtr activeSketch() const { return myCurrentSketch; } @@ -137,14 +139,20 @@ public: /// \param theObject a model object bool canDisplayObject(const ObjectPtr& theObject) const; - /// Returns true if the current operation is sketch entity create operation - /// \param theValue the current auxiliary value - /// \return the boolean result - bool canSetAuxiliary(bool& theValue) const; - - /// Changes the sketcher entity construction argument value - /// \param isChecked if true, the feature is a construction - void setAuxiliary(const bool isChecked); + /// Returns state of constraints showing flag + bool isConstraintsShown() const { return myIsConstraintsShown; } + + /// Saves the current selection in the viewer into an internal container + /// It obtains the selected attributes. The highlighted objects can be processes as the selected ones + /// \param theHighlightedUse a boolean flag + void storeSelection(const bool theHighlightedOnly = false); + void restoreSelection(); + + /// Returns list of strings which contains id's of sketch operations + static const QStringList& sketchOperationIdList(); + + /// Returns list of strings which contains id's of constraints operations + static const QStringList& constraintsIdList(); public slots: /// Process sketch plane selected event @@ -174,13 +182,12 @@ private slots: void onBeforeContextMenu(); void onAfterContextMenu(); + void onShowConstraintsToggle(bool); + private: /// Launches the operation from current highlighting void launchEditing(); - /// Returns list of strings which contains id's of sketch operations - static QStringList sketchOperationIdList(); - /// Converts mouse position to 2d coordinates. /// Member myCurrentSketch has to be correctly defined void get2dPoint(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent, @@ -239,12 +246,6 @@ private: /// \param isToDisplay a flag about the display or erase the feature void visualizeFeature(ModuleBase_Operation* theOperation, const bool isToDisplay); - /// Saves the current selection in the viewer into an internal container - /// It obtains the selected attributes. The highlighted objects can be processes as the selected ones - /// \param theHighlightedUse a boolean flag - void storeSelection(const bool theHighlightedOnly = false); - void restoreSelection(); - private: PartSet_Module* myModule; @@ -263,6 +264,8 @@ private: Handle(ModuleBase_ShapeInPlaneFilter) myPlaneFilter; FeatureToSelectionMap myCurrentSelection; bool myPreviousUpdateViewerEnabled; + + bool myIsConstraintsShown; };