Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintRigid.cpp
index b1cd1708bfbab8a93da24c2f25707b3c4748fdee..6695a8813dd8f0b0b7b1be6929734e6e05d8be75 100644 (file)
@@ -1,8 +1,19 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
 // File:    SketchPlugin_ConstraintRigid.cpp
 // Created: 13 Oct 2014
 // Author:  Artem ZHIDKOV
 
 #include "SketchPlugin_ConstraintRigid.h"
+#include "SketchPlugin_ConstraintParallel.h"
+
+#include <SketcherPrs_Factory.h>
+
+#include <ModelAPI_ResultConstruction.h>
+#include <Config_PropManager.h>
+
+#include <GeomDataAPI_Point2D.h>
+#include <GeomAlgoAPI_PointBuilder.h>
 
 SketchPlugin_ConstraintRigid::SketchPlugin_ConstraintRigid()
 {
@@ -16,3 +27,16 @@ void SketchPlugin_ConstraintRigid::initAttributes()
 void SketchPlugin_ConstraintRigid::execute()
 {
 }
+
+AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious)
+{
+  if (!sketch())
+    return thePrevious;
+
+  AISObjectPtr anAIS = thePrevious;
+  if (!anAIS) {
+    anAIS = SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane());
+  }
+
+  return anAIS;
+}
\ No newline at end of file