]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
1692: Correction for the next wrong case: edit Sketch_2, start Line, select 1st point...
authornds <nds@opencascade.com>
Mon, 29 Aug 2016 05:48:47 +0000 (08:48 +0300)
committernds <nds@opencascade.com>
Mon, 29 Aug 2016 05:48:47 +0000 (08:48 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index a46d07f9d7413038f82e3b2086aca17e33aaa3e0..24256731d1ca82ba43ebc8a48815b5d4289b0e49 100755 (executable)
@@ -93,6 +93,7 @@
 
 //#define DEBUG_DO_NOT_BY_ENTER
 //#define DEBUG_SKETCHER_ENTITIES
+//#define DEBUG_SKETCH_ENTITIES_ON_MOVE
 
 //#define DEBUG_CURSOR
 
@@ -439,6 +440,18 @@ void PartSet_SketcherMgr::onMouseReleased(ModuleBase_IViewWindow* theWnd, QMouse
 
 void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
 {
+#ifdef DEBUG_SKETCH_ENTITIES_ON_MOVE
+  CompositeFeaturePtr aSketch = activeSketch();
+  std::cout << "SKETCH FEATURES (before split) [" << aSketch->numberOfSubs() << "]:" << std::endl;
+  QStringList anInfo;
+  for (int i = 0, aNbSubs = aSketch->numberOfSubs(); i < aNbSubs; i++) {
+    //std::cout << getFeatureInfo(aSketch->subFeature(i), false) << std::endl;
+    anInfo.append(ModuleBase_Tools::objectInfo(aSketch->subFeature(i)));
+  }
+  QString anInfoStr = anInfo.join(";\t");
+  qDebug(QString("onFeatureUpdatedMsg: %1, %2").arg(anInfo.size()).arg(anInfoStr).toStdString().c_str());
+#endif
+
   if (myModule->sketchReentranceMgr()->processMouseMoved(theWnd, theEvent))
     return;