]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction to restart new Sketch features: Collinear, Middle point and Rectangle
authornds <nds@opencascade.com>
Tue, 9 Feb 2016 14:37:14 +0000 (17:37 +0300)
committernds <nds@opencascade.com>
Tue, 9 Feb 2016 14:37:14 +0000 (17:37 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 02b1daf59fc39b0385825ffd8b8a6d490755094b..eba4621e367083dab64fae4c9e93d899e30e24e2 100755 (executable)
@@ -58,6 +58,8 @@
 #include <SketchPlugin_ConstraintFillet.h>
 #include <SketchPlugin_ConstraintMirror.h>
 #include <SketchPlugin_ConstraintAngle.h>
+#include <SketchPlugin_ConstraintCollinear.h>
+#include <SketchPlugin_ConstraintMiddle.h>
 #include <SketchPlugin_MultiRotation.h>
 #include <SketchPlugin_MultiTranslation.h>
 
@@ -731,6 +733,10 @@ const QStringList& PartSet_SketcherMgr::sketchOperationIdList()
     aIds << SketchPlugin_Arc::ID().c_str();
     aIds << SketchPlugin_Circle::ID().c_str();
     aIds << SketchPlugin_ConstraintFillet::ID().c_str();
+    aIds << SketchPlugin_Circle::ID().c_str();
+    // TODO
+    // SketchRectangle is a python feature, so its ID is passed just as a string
+    aIds << "SketchRectangle";
     aIds.append(constraintsIdList());
   }
   return aIds;
@@ -755,6 +761,8 @@ const QStringList& PartSet_SketcherMgr::constraintsIdList()
     aIds << SketchPlugin_ConstraintAngle::ID().c_str();
     aIds << SketchPlugin_MultiRotation::ID().c_str();
     aIds << SketchPlugin_MultiTranslation::ID().c_str();
+    aIds << SketchPlugin_ConstraintCollinear::ID().c_str();
+    aIds << SketchPlugin_ConstraintMiddle::ID().c_str();
   }
   return aIds;
 }