Salome HOME
Simplification and refactoring of unit tests for SketchPlugin
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintMiddle.cpp
index 7112d440101f6283295d6e73372595b221e69949..31fc3f1da64ecc9fa2b6868648aa003dea155051 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "SketchPlugin_ConstraintMiddle.h"
 
+#include "SketcherPrs_Factory.h"
+
 SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
 {
 }
@@ -25,10 +27,8 @@ AISObjectPtr SketchPlugin_ConstraintMiddle::getAISObject(AISObjectPtr thePreviou
   if (!sketch())
     return thePrevious;
 
-  AISObjectPtr anAIS;
-  // TODO
-  //AISObjectPtr anAIS = SketcherPrs_Factory::collinearConstraint(this, sketch()->coordinatePlane(),
-  //                                                              thePrevious);
+  AISObjectPtr anAIS = SketcherPrs_Factory::middleConstraint(this, sketch()->coordinatePlane(),
+                                                             thePrevious);
   return anAIS;
 }