Salome HOME
The local selection restore for a feature vertex (it is checked on the line feature)
authornds <natalia.donis@opencascade.com>
Fri, 26 Dec 2014 14:18:18 +0000 (17:18 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 26 Dec 2014 14:18:18 +0000 (17:18 +0300)
It commits the previous functionality, because the LenghtConstraint digit is disappeared with it.

src/PartSet/PartSet_SketcherMgr.cpp

index 01e0fa98e452d50420866a563671f4e142f2ecb5..edc27e0b7ae1e236a16dc66cbb3ee53ee70b27d8 100644 (file)
@@ -270,7 +270,7 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve
           std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
         if (aSketchFeature) { 
           // save the previous selection
-          ModuleBase_IWorkshop* aWorkshop = myModule->workshop();
+          /*ModuleBase_IWorkshop* aWorkshop = myModule->workshop();
           XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(aWorkshop);
           XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer();
           QIntList anActivatedModes;
@@ -280,13 +280,13 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve
           aDisplayer->getModesOfActivation(aResult, anActivatedModes);
 
           std::list<AttributePtr> aSelectedAttributes;
-          getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes);
+          getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes);*/
           // save the previous selection: end
 
 
           aSketchFeature->move(dX, dY);
           ModelAPI_EventCreator::get()->sendUpdated(aSketchFeature, anEvent);
-
+          /*
           // TODO: the selection restore should be after the AIS presentation is rebuilt
           Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED));
           Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
@@ -305,12 +305,12 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve
             aContext->AddOrRemoveSelected(anOwnersToSelect(i), false); // SetSelected()
 
           aContext->UpdateCurrentViewer();
-          // restore the previous selection
+          // restore the previous selection*/
         }
       }
       // TODO: set here
-      //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED));
-      //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
+      Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED));
+      Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
     }
     myDragDone = true;
     myCurX = aX;