1 // File: SketchPlugin_ConstraintDistance.cpp
2 // Created: 23 May 2014
3 // Author: Artem ZHIDKOV
5 #include "SketchPlugin_ConstraintDistance.h"
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9 #include <SketchPlugin_Point.h>
11 SketchPlugin_ConstraintDistance::SketchPlugin_ConstraintDistance()
15 void SketchPlugin_ConstraintDistance::initAttributes()
17 data()->addAttribute(CONSTRAINT_ATTR_VALUE, ModelAPI_AttributeDouble::type());
18 data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
19 data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type());
22 void SketchPlugin_ConstraintDistance::execute()
26 const boost::shared_ptr<GeomAPI_Shape>& SketchPlugin_ConstraintDistance::preview()
28 /// \todo Preview for distance constraint