]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/SketchPlugin_ConstraintLength.cpp
Salome HOME
07a86905e3693e016a3a35ecee6bbe4ca59419f1
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintLength.cpp
1 // File:    SketchPlugin_ConstraintLength.cpp
2 // Created: 30 May 2014
3 // Author:  Artem ZHIDKOV
4
5 #include "SketchPlugin_ConstraintLength.h"
6
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9
10 SketchPlugin_ConstraintLength::SketchPlugin_ConstraintLength()
11 {
12 }
13
14 void SketchPlugin_ConstraintLength::initAttributes()
15 {
16   data()->addAttribute(CONSTRAINT_ATTR_VALUE,    ModelAPI_AttributeDouble::type());
17   data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
18 }
19
20 void SketchPlugin_ConstraintLength::execute()
21 {
22 }
23
24 const boost::shared_ptr<GeomAPI_Shape>&  SketchPlugin_ConstraintLength::preview()
25 {
26   /// \todo Preview for distance constraint
27   return getPreview();
28 }
29