1 #include <PartSet_Module.h>
2 #include <PartSet_OperationSketch.h>
3 #include <PartSet_OperationFeatureCreate.h>
4 #include <PartSet_OperationFeatureEdit.h>
5 #include <PartSet_Listener.h>
6 #include <PartSet_TestOCC.h>
7 #include <PartSet_WidgetSketchLabel.h>
8 #include <PartSet_Validators.h>
9 #include <PartSet_Tools.h>
11 #include <ModuleBase_Operation.h>
12 #include <ModuleBase_OperationDescription.h>
13 #include <ModuleBase_WidgetFactory.h>
14 #include <ModuleBase_Operation.h>
16 #include <ModelAPI_Object.h>
17 #include <ModelAPI_Events.h>
18 #include <ModelAPI_Validator.h>
19 #include <ModelAPI_Data.h>
20 #include <ModelAPI_Session.h>
22 #include <GeomDataAPI_Point2D.h>
23 #include <GeomDataAPI_Point.h>
24 #include <GeomDataAPI_Dir.h>
26 #include <XGUI_MainWindow.h>
27 #include <XGUI_Displayer.h>
28 #include <XGUI_Viewer.h>
29 #include <XGUI_Workshop.h>
30 #include <XGUI_OperationMgr.h>
31 #include <XGUI_ViewPort.h>
32 #include <XGUI_ActionsMgr.h>
33 #include <XGUI_ViewerProxy.h>
34 #include <XGUI_ContextMenuMgr.h>
35 #include <XGUI_PropertyPanel.h>
36 #include <XGUI_ModuleConnector.h>
37 #include <XGUI_Tools.h>
39 #include <SketchPlugin_Line.h>
40 #include <SketchPlugin_Sketch.h>
42 #include <Config_PointerMessage.h>
43 #include <Config_ModuleReader.h>
44 #include <Config_WidgetReader.h>
45 #include <Events_Loop.h>
46 //#include <Events_Message.h>
47 //#include <Events_Error.h>
49 #include <GeomAPI_Shape.h>
50 #include <GeomAPI_AISObject.h>
51 #include <AIS_Shape.hxx>
52 #include <AIS_DimensionSelectionMode.hxx>
54 #include <StdSelect_TypeOfFace.hxx>
57 #include <QMouseEvent>
60 #include <GeomAlgoAPI_FaceBuilder.h>
61 #include <GeomDataAPI_Dir.h>
67 /*!Create and return new instance of XGUI_Module*/
68 extern "C" PARTSET_EXPORT ModuleBase_IModule* createModule(ModuleBase_IWorkshop* theWshop)
70 return new PartSet_Module(theWshop);
73 PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop)
74 : ModuleBase_IModule(theWshop)
76 //myWorkshop = theWshop;
77 myListener = new PartSet_Listener(this);
79 connect(myWorkshop, SIGNAL(operationStarted(ModuleBase_Operation*)),
80 this, SLOT(onOperationStarted(ModuleBase_Operation*)));
82 connect(myWorkshop, SIGNAL(operationStopped(ModuleBase_Operation*)), this,
83 SLOT(onOperationStopped(ModuleBase_Operation*)));
85 XGUI_Workshop* aXWshop = xWorkshop();
86 XGUI_ContextMenuMgr* aContextMenuMgr = aXWshop->contextMenuMgr();
87 connect(aContextMenuMgr, SIGNAL(actionTriggered(const QString&, bool)), this,
88 SLOT(onContextMenuCommand(const QString&, bool)));
92 PartSet_Module::~PartSet_Module()
96 void PartSet_Module::createFeatures()
98 //Registering of validators
99 SessionPtr aMgr = ModelAPI_Session::get();
100 ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
101 aFactory->registerValidator("PartSet_DistanceValidator", new PartSet_DistanceValidator);
102 aFactory->registerValidator("PartSet_LengthValidator", new PartSet_LengthValidator);
103 aFactory->registerValidator("PartSet_PerpendicularValidator", new PartSet_PerpendicularValidator);
104 aFactory->registerValidator("PartSet_ParallelValidator", new PartSet_ParallelValidator);
105 aFactory->registerValidator("PartSet_RadiusValidator", new PartSet_RadiusValidator);
107 Config_ModuleReader aXMLReader = Config_ModuleReader();
108 aXMLReader.readAll();
109 myFeaturesInFiles = aXMLReader.featuresInFiles();
112 void PartSet_Module::featureCreated(QAction* theFeature)
114 connect(theFeature, SIGNAL(triggered(bool)), this, SLOT(onFeatureTriggered()));
117 std::string PartSet_Module::featureFile(const std::string& theFeatureId)
119 return myFeaturesInFiles[theFeatureId];
125 void PartSet_Module::onFeatureTriggered()
127 QAction* aCmd = dynamic_cast<QAction*>(sender());
128 //Do nothing on uncheck
129 if (aCmd->isCheckable() && !aCmd->isChecked())
131 launchOperation(aCmd->data().toString());
135 void PartSet_Module::onOperationStarted(ModuleBase_Operation* theOperation)
137 XGUI_Workshop* aXWshp = xWorkshop();
138 XGUI_Displayer* aDisplayer = aXWshp->displayer();
139 PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(theOperation);
141 XGUI_PropertyPanel* aPropPanel = aXWshp->propertyPanel();
142 connect(aPropPanel, SIGNAL(storedPoint2D(ObjectPtr, const std::string&)), this,
143 SLOT(onStorePoint2D(ObjectPtr, const std::string&)), Qt::UniqueConnection);
145 //aDisplayer->deactivateObjectsOutOfContext();
146 PartSet_OperationSketch* aSketchOp = dynamic_cast<PartSet_OperationSketch*>(aPreviewOp);
148 if (aSketchOp->isEditOperation()) {
149 setSketchingMode(getSketchPlane(aSketchOp->feature()));
151 aDisplayer->openLocalContext();
152 aDisplayer->activateObjectsOutOfContext(QIntList());
153 myPlaneFilter = new StdSelect_FaceFilter(StdSelect_Plane);
154 aDisplayer->addSelectionFilter(myPlaneFilter);
155 QIntList aModes = sketchSelectionModes(aPreviewOp->feature());
156 aDisplayer->setSelectionModes(aModes);
162 void PartSet_Module::onOperationStopped(ModuleBase_Operation* theOperation)
166 XGUI_Workshop* aXWshp = xWorkshop();
167 XGUI_Displayer* aDisplayer = aXWshp->displayer();
168 PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(theOperation);
170 XGUI_PropertyPanel* aPropPanel = aXWshp->propertyPanel();
172 PartSet_OperationSketch* aSketchOp = dynamic_cast<PartSet_OperationSketch*>(aPreviewOp);
174 aDisplayer->closeLocalContexts();
176 PartSet_OperationFeatureCreate* aCreationOp =
177 dynamic_cast<PartSet_OperationFeatureCreate*>(aPreviewOp);
179 // Activate just created object for selection
180 FeaturePtr aFeature = aCreationOp->feature();
181 QIntList aModes = sketchSelectionModes(aFeature);
182 const std::list<ResultPtr>& aResults = aFeature->results();
183 std::list<ResultPtr>::const_iterator anIt, aLast = aResults.end();
184 for (anIt = aResults.begin(); anIt != aLast; anIt++) {
185 aDisplayer->activate(*anIt, aModes);
187 aDisplayer->activate(aFeature, aModes);
188 aDisplayer->clearSelected();
192 // Activate results of current feature for selection
193 //FeaturePtr aFeature = theOperation->feature();
194 //XGUI_Displayer* aDisplayer = aXWshp->displayer();
195 //std::list<ResultPtr> aResults = aFeature->results();
196 //std::list<ResultPtr>::const_iterator aIt;
197 //for (aIt = aResults.cbegin(); aIt != aResults.cend(); ++aIt) {
198 // aDisplayer->activate(*aIt);
203 void PartSet_Module::onContextMenuCommand(const QString& theId, bool isChecked)
205 QList<ObjectPtr> aFeatures = workshop()->selection()->selectedObjects();
206 if (theId == "EDIT_CMD" && (aFeatures.size() > 0)) {
207 FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(aFeatures.first());
209 editFeature(aFeature);
213 void PartSet_Module::onMousePressed(QMouseEvent* theEvent)
215 XGUI_Workshop* aXWshp = xWorkshop();
216 PartSet_OperationSketchBase* aPreviewOp =
217 dynamic_cast<PartSet_OperationSketchBase*>(workshop()->currentOperation());
219 ModuleBase_ISelection* aSelection = workshop()->selection();
220 aPreviewOp->mousePressed(theEvent, myWorkshop->viewer(), aSelection);
224 void PartSet_Module::onMouseReleased(QMouseEvent* theEvent)
226 PartSet_OperationSketchBase* aPreviewOp =
227 dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());
229 ModuleBase_ISelection* aSelection = workshop()->selection();
230 // Initialise operation with preliminary selection
231 aPreviewOp->mouseReleased(theEvent, myWorkshop->viewer(), aSelection);
235 void PartSet_Module::onMouseMoved(QMouseEvent* theEvent)
237 PartSet_OperationSketchBase* aPreviewOp =
238 dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());
240 aPreviewOp->mouseMoved(theEvent, myWorkshop->viewer());
243 void PartSet_Module::onKeyRelease(QKeyEvent* theEvent)
245 ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
246 PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
248 aPreviewOp->keyReleased(theEvent->key());
252 void PartSet_Module::onMouseDoubleClick(QMouseEvent* theEvent)
254 PartSet_OperationSketchBase* aPreviewOp =
255 dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());
256 Handle(V3d_View) aView = myWorkshop->viewer()->activeView();
257 if (aPreviewOp && (!aView.IsNull())) {
258 ModuleBase_ISelection* aSelection = workshop()->selection();
259 // Initialise operation with preliminary selection
260 aPreviewOp->mouseDoubleClick(theEvent, aView, aSelection);
264 void PartSet_Module::onPlaneSelected(double theX, double theY, double theZ)
266 myWorkshop->viewer()->setViewProjection(theX, theY, theZ);
269 void PartSet_Module::onSketchLaunched()
271 xWorkshop()->actionsMgr()->update();
273 ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
274 FeaturePtr aSketch = anOperation->feature();
275 setSketchingMode(getSketchPlane(aSketch));
278 void PartSet_Module::onFitAllView()
280 myWorkshop->viewer()->fitAll();
283 void PartSet_Module::onRestartOperation(std::string theName, ObjectPtr theObject)
285 FeaturePtr aFeature = ModelAPI_Feature::feature(theObject);
287 std::string aKind = aFeature ? aFeature->getKind() : "";
288 ModuleBase_Operation* anOperation = createOperation(theName, aKind);
290 PartSet_OperationSketchBase* aSketchOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
292 PartSet_OperationFeatureCreate* aCreateOp = dynamic_cast<PartSet_OperationFeatureCreate*>(anOperation);
294 aCreateOp->initFeature(aFeature);
296 anOperation->setFeature(aFeature);
298 ModuleBase_ISelection* aSelection = workshop()->selection();
299 // Initialise operation with preliminary selection
300 aSketchOp->initSelection(aSelection, myWorkshop->viewer());
301 } else if (aFeature) { // In case of edit operation: set the previously created feature to the operation
302 anOperation->setFeature(aFeature);
303 ////Deactivate result of current feature in order to avoid its selection
304 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
305 std::list<ResultPtr> aResults = aFeature->results();
306 std::list<ResultPtr>::const_iterator aIt;
307 for (aIt = aResults.cbegin(); aIt != aResults.cend(); ++aIt) {
308 aDisplayer->deactivate(*aIt);
311 sendOperation(anOperation);
312 xWorkshop()->actionsMgr()->updateCheckState();
315 void PartSet_Module::onMultiSelectionEnabled(bool theEnabled)
317 ModuleBase_IViewer* aViewer = myWorkshop->viewer();
318 aViewer->enableMultiselection(theEnabled);
321 void PartSet_Module::onStopSelection(const QList<ObjectPtr>& theFeatures, const bool isStop)
323 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
325 // foreach(ObjectPtr aObject, theFeatures) {
326 // activateFeature(aObject);
329 aDisplayer->stopSelection(theFeatures, isStop, false);
331 ModuleBase_IViewer* aViewer = myWorkshop->viewer();
332 aViewer->enableSelection(!isStop);
334 aDisplayer->updateViewer();
337 void PartSet_Module::onSetSelection(const QList<ObjectPtr>& theFeatures)
339 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
340 aDisplayer->setSelected(theFeatures, false);
341 aDisplayer->updateViewer();
344 void PartSet_Module::setSketchingMode(const gp_Pln& thePln)
346 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
347 if (!myPlaneFilter.IsNull()) {
348 aDisplayer->removeSelectionFilter(myPlaneFilter);
349 myPlaneFilter.Nullify();
352 // Clear standard selection modes
353 aDisplayer->setSelectionModes(aModes);
354 aDisplayer->openLocalContext();
357 mySketchFilter = new ModuleBase_ShapeInPlaneFilter(thePln);
358 aDisplayer->addSelectionFilter(mySketchFilter);
360 // Get default selection modes
361 aModes = sketchSelectionModes(ObjectPtr());
362 aDisplayer->activateObjectsOutOfContext(aModes);
365 void PartSet_Module::onFeatureConstructed(ObjectPtr theFeature, int theMode)
367 bool isDisplay = theMode != PartSet_OperationSketchBase::FM_Hide;
368 ModuleBase_Operation* aCurOperation = myWorkshop->currentOperation();
369 PartSet_OperationSketchBase* aPrevOp = dynamic_cast<PartSet_OperationSketchBase*>(aCurOperation);
371 std::list<FeaturePtr> aList = aPrevOp->subFeatures();
372 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
373 QIntList aModes = sketchSelectionModes(aPrevOp->feature());
374 std::list<FeaturePtr>::iterator aSFIt;
375 for (aSFIt = aList.begin(); aSFIt != aList.end(); ++aSFIt) {
376 std::list<ResultPtr> aResults = (*aSFIt)->results();
377 std::list<ResultPtr>::iterator aIt;
378 for (aIt = aResults.begin(); aIt != aResults.end(); ++aIt) {
380 aDisplayer->erase((*aIt), false);
383 aDisplayer->erase((*aSFIt), false);
385 //aDisplayer->deactivateObjectsOutOfContext();
388 ModelAPI_EventCreator::get()->sendUpdated(
389 theFeature, Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY));
392 ModuleBase_Operation* PartSet_Module::createOperation(const std::string& theCmdId,
393 const std::string& theFeatureKind)
395 // create the operation
396 ModuleBase_Operation* anOperation = 0;
397 if (theCmdId == PartSet_OperationSketch::Type()) {
398 anOperation = new PartSet_OperationSketch(theCmdId.c_str(), this);
400 ModuleBase_Operation* aCurOperation = myWorkshop->currentOperation();
401 CompositeFeaturePtr aSketch;
402 PartSet_OperationSketchBase* aPrevOp = dynamic_cast<PartSet_OperationSketchBase*>(aCurOperation);
404 aSketch = aPrevOp->sketch();
406 if (PartSet_OperationFeatureCreate::canProcessKind(theCmdId)) {
407 anOperation = new PartSet_OperationFeatureCreate(theCmdId.c_str(), this, aSketch);
408 } else if (theCmdId == PartSet_OperationFeatureEdit::Type()) {
409 anOperation = new PartSet_OperationFeatureEdit(theCmdId.c_str(), this, aSketch);
414 anOperation = new ModuleBase_Operation(theCmdId.c_str(), this);
417 // set operation description and list of widgets corresponding to the feature xml definition
418 std::string aFeatureKind = theFeatureKind.empty() ? theCmdId : theFeatureKind;
420 std::string aPluginFileName = featureFile(aFeatureKind);
421 Config_WidgetReader aWdgReader = Config_WidgetReader(aPluginFileName);
422 aWdgReader.readAll();
423 std::string aXmlCfg = aWdgReader.featureWidgetCfg(aFeatureKind);
424 std::string aDescription = aWdgReader.featureDescription(aFeatureKind);
426 anOperation->getDescription()->setDescription(QString::fromStdString(aDescription));
427 anOperation->getDescription()->setXmlRepresentation(QString::fromStdString(aXmlCfg));
429 // connect the operation
430 PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
432 connect(aPreviewOp, SIGNAL(featureConstructed(ObjectPtr, int)), this,
433 SLOT(onFeatureConstructed(ObjectPtr, int)));
434 connect(aPreviewOp, SIGNAL(restartRequired(std::string, ObjectPtr)), this,
435 SLOT(onRestartOperation(std::string, ObjectPtr)));
436 // If manage multi selection the it will be impossible to select more then one
437 // object under operation Edit
438 // connect(aPreviewOp, SIGNAL(multiSelectionEnabled(bool)), this,
439 // SLOT(onMultiSelectionEnabled(bool)));
441 connect(aPreviewOp, SIGNAL(stopSelection(const QList<ObjectPtr>&, const bool)), this,
442 SLOT(onStopSelection(const QList<ObjectPtr>&, const bool)));
443 connect(aPreviewOp, SIGNAL(setSelection(const QList<ObjectPtr>&)), this,
444 SLOT(onSetSelection(const QList<ObjectPtr>&)));
446 PartSet_OperationSketch* aSketchOp = dynamic_cast<PartSet_OperationSketch*>(aPreviewOp);
448 connect(aSketchOp, SIGNAL(planeSelected(double, double, double)), this,
449 SLOT(onPlaneSelected(double, double, double)));
450 connect(aSketchOp, SIGNAL(fitAllView()), this, SLOT(onFitAllView()));
451 connect(aSketchOp, SIGNAL(launchSketch()), this, SLOT(onSketchLaunched()));
459 void PartSet_Module::updateCurrentPreview(const std::string& theCmdId)
461 ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
465 PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
469 FeaturePtr aFeature = aPreviewOp->feature();
470 if (!aFeature || aFeature->getKind() != theCmdId)
473 XGUI_Displayer* aDisplayer = xWorkshop()->displayer();
474 // Hide result of sketch
475 std::list<ResultPtr> aResults = aFeature->results();
476 std::list<ResultPtr>::const_iterator aIt;
477 for (aIt = aResults.cbegin(); aIt != aResults.cend(); ++aIt)
478 aDisplayer->erase(*aIt, false);
480 std::list<FeaturePtr> aList = aPreviewOp->subFeatures();
482 std::list<FeaturePtr>::const_iterator anIt = aList.begin(), aLast = aList.end();
483 for (; anIt != aLast; anIt++) {
484 boost::shared_ptr<SketchPlugin_Feature> aSPFeature = boost::dynamic_pointer_cast<
485 SketchPlugin_Feature>(*anIt);
488 std::list<ResultPtr> aResults = aSPFeature->results();
489 std::list<ResultPtr>::const_iterator aRIt;
490 for (aRIt = aResults.cbegin(); aRIt != aResults.cend(); ++aRIt) {
491 aDisplayer->display((*aRIt), false);
492 aDisplayer->activate((*aRIt), sketchSelectionModes((*aRIt)));
494 aDisplayer->display(aSPFeature, false);
495 aDisplayer->activate(aSPFeature, sketchSelectionModes(aSPFeature));
497 aDisplayer->updateViewer();
500 void PartSet_Module::editFeature(FeaturePtr theFeature)
505 // if (theFeature->getKind() == SKETCH_KIND) {
506 //FeaturePtr aFeature = theFeature;
507 //if (XGUI_Tools::isModelObject(aFeature)) {
508 // ObjectPtr aObject = boost::dynamic_pointer_cast<ModelAPI_Object>(aFeature);
509 // aFeature = aObject->featureRef();
513 onRestartOperation(theFeature->getKind(), theFeature);
514 updateCurrentPreview(theFeature->getKind());
519 void PartSet_Module::onStorePoint2D(ObjectPtr theFeature, const std::string& theAttribute)
521 FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
523 PartSet_OperationSketchBase* aPreviewOp =
524 dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());
528 boost::shared_ptr<GeomDataAPI_Point2D> aPoint = boost::dynamic_pointer_cast<GeomDataAPI_Point2D>(
529 aFeature->data()->attribute(theAttribute));
531 PartSet_Tools::setConstraints(aPreviewOp->sketch(), aFeature, theAttribute, aPoint->x(),
535 QWidget* PartSet_Module::createWidgetByType(const std::string& theType, QWidget* theParent,
536 Config_WidgetAPI* theWidgetApi,
537 QList<ModuleBase_ModelWidget*>& theModelWidgets)
539 if (theType == "sketch-start-label") {
540 PartSet_WidgetSketchLabel* aWgt = new PartSet_WidgetSketchLabel(theParent, theWidgetApi, "");
541 aWgt->setOperationsMgr(xWorkshop()->operationMgr());
542 theModelWidgets.append(aWgt);
543 return aWgt->getControl();
549 XGUI_Workshop* PartSet_Module::xWorkshop() const
551 XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
553 return aConnector->workshop();
559 QIntList PartSet_Module::sketchSelectionModes(ObjectPtr theFeature)
562 FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
564 if (aFeature->getKind() == SketchPlugin_Sketch::ID()) {
565 aModes.append(TopAbs_FACE);
567 } else if (PartSet_Tools::isConstraintFeature(aFeature->getKind())) {
568 aModes.append(AIS_DSM_Text);
569 aModes.append(AIS_DSM_Line);
573 aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_VERTEX));
574 aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_EDGE));
579 gp_Pln PartSet_Module::getSketchPlane(FeaturePtr theSketch) const
581 DataPtr aData = theSketch->data();
582 boost::shared_ptr<GeomDataAPI_Point> anOrigin = boost::dynamic_pointer_cast<GeomDataAPI_Point>(
583 aData->attribute(SketchPlugin_Sketch::ORIGIN_ID()));
584 boost::shared_ptr<GeomDataAPI_Dir> aNorm = boost::dynamic_pointer_cast<GeomDataAPI_Dir>(
585 aData->attribute(SketchPlugin_Sketch::NORM_ID()));
586 gp_Pnt aOrig(anOrigin->x(), anOrigin->y(), anOrigin->z());
587 gp_Dir aDir(aNorm->x(), aNorm->y(), aNorm->z());
588 return gp_Pln(aOrig, aDir);
592 void PartSet_Module::onSelectionChanged()
594 ModuleBase_ISelection* aSelect = myWorkshop->selection();
595 QList<ModuleBase_ViewerPrs> aSelected = aSelect->getSelected();
596 // We need to stop edit operation if selection is cleared
597 if (aSelected.size() == 0) {
598 // do not perform commit of the current edit operation here, because
599 // this functionality is realized inside this operation
600 /*PartSet_OperationFeatureEdit* anEditOp =
601 dynamic_cast<PartSet_OperationFeatureEdit*>(myWorkshop->currentOperation());
604 anEditOp->commit();*/
606 PartSet_OperationSketchBase* aSketchOp =
607 dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());
609 aSketchOp->selectionChanged(aSelect);