/// Display only current operation results for usual operation and ask the sketcher manager
/// if it is a sketch operation
/// \param theObject a model object
- bool canDisplayObject() const;
+ bool canDisplayObject(const ObjectPtr& theObject) const;
/// Returns true if the current operation is sketch entity create operation
/// \param theValue the current auxiliary value
/// \param isChecked if true, the feature is a construction
void setAuxiliary(const bool isChecked);
+
+ bool isConstraintsShown() const { return myIsConstraintsShown; }
+
+
+ /// 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
void onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& thePln);
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,
Handle(ModuleBase_ShapeInPlaneFilter) myPlaneFilter;
FeatureToSelectionMap myCurrentSelection;
bool myPreviousUpdateViewerEnabled;
+
+ bool myIsConstraintsShown;
};