Salome HOME
Merge remote-tracking branch 'remotes/origin/SolveSpace'
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintParallel.cpp
1 // File:    SketchPlugin_ConstraintParallel.cpp
2 // Created: 26 May 2014
3 // Author:  Artem ZHIDKOV
4
5 #include "SketchPlugin_ConstraintParallel.h"
6
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9 #include <SketchPlugin_Point.h>
10
11 SketchPlugin_ConstraintParallel::SketchPlugin_ConstraintParallel()
12 {
13 }
14
15 void SketchPlugin_ConstraintParallel::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_ConstraintParallel::execute()
22 {
23 }
24
25 const boost::shared_ptr<GeomAPI_Shape>&  SketchPlugin_ConstraintParallel::preview()
26 {
27   /// \todo Preview for parallel constraint
28   return getPreview();
29 }
30