Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintCoincidence.cpp
1 // File:    SketchPlugin_ConstraintCoincidence.cpp
2 // Created: 08 May 2014
3 // Author:  Artem ZHIDKOV
4
5 #include "SketchPlugin_ConstraintCoincidence.h"
6
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9 #include <SketchPlugin_Point.h>
10
11 SketchPlugin_ConstraintCoincidence::SketchPlugin_ConstraintCoincidence()
12 {
13 }
14
15 void SketchPlugin_ConstraintCoincidence::initAttributes()
16 {
17   data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
18   data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type());
19 }
20
21 void SketchPlugin_ConstraintCoincidence::execute()
22 {
23 }
24
25 const boost::shared_ptr<GeomAPI_Shape>&  SketchPlugin_ConstraintCoincidence::preview()
26 {
27   /// \todo Preview for point coincidence
28   return getPreview();
29 }
30