ModuleBase_IModule::onFeatureTriggered();
}
+void PartSet_Module::launchOperation(const QString& theCmdId)
+{
+ if (PartSet_SketcherMgr::constraintsIdList().contains(theCmdId)) {
+ // Show constraints if a constraint was anOperation
+ mySketchMgr->onShowConstraintsToggle(true);
+ }
+ ModuleBase_IModule::launchOperation(theCmdId);
+}
+
+
void PartSet_Module::onObjectDisplayed(ObjectPtr theObject, AISObjectPtr theAIS)
{
Handle(AIS_InteractiveObject) anAIS = theAIS->impl<Handle(AIS_InteractiveObject)>();
/// Call back forlast tuning of property panel before operation performance
virtual void propertyPanelDefined(ModuleBase_Operation* theOperation);
+ /// Creates an operation and send it to loop
+ /// \param theCmdId the operation name
+ virtual void launchOperation(const QString& theCmdId);
+
/// Realizes some functionality by an operation start
/// Displays all sketcher sub-Objects, hides sketcher result, appends selection filters
/// Activate the operation presentation
void PartSet_SketcherMgr::startNestedSketch(ModuleBase_Operation* theOperation)
{
- if (constraintsIdList().contains(theOperation->id())) {
- // Show constraints if a constraint was created
- onShowConstraintsToggle(true);
- }
connectToPropertyPanel(true);
}
/// Process sketch plane selected event
void onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& thePln);
+ /// Toggle show constraints
+ void onShowConstraintsToggle(bool);
+
private slots:
/// Process the enter mouse to the view port. If the current operation is a create of
/// a nested sketch feature, it updates internal flags to display the feature on mouse move
void onBeforeContextMenu();
void onAfterContextMenu();
- void onShowConstraintsToggle(bool);
-
private:
/// Launches the operation from current highlighting
void launchEditing();