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