Salome HOME
Move generation of AIS presentation into SketchPlugin
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Constraint.cpp
diff --git a/src/SketchPlugin/SketchPlugin_Constraint.cpp b/src/SketchPlugin/SketchPlugin_Constraint.cpp
new file mode 100644 (file)
index 0000000..70a980a
--- /dev/null
@@ -0,0 +1,18 @@
+// File:    SketchPlugin_Constraint.cpp
+// Created: 08 May 2014
+// Author:  Artem ZHIDKOV
+
+#include "SketchPlugin_Constraint.h"
+
+#include <AIS_InteractiveObject.hxx>
+
+Handle_AIS_InteractiveObject SketchPlugin_Constraint::getAISShape(Handle_AIS_InteractiveObject thePrevious)
+{ 
+  return thePrevious;
+}
+
+const boost::shared_ptr<GeomAPI_Shape>&  SketchPlugin_Constraint::preview()
+{
+  return getPreview();
+}
+