1 // File: SketchPlugin_ConstraintLength.cpp
2 // Created: 30 May 2014
3 // Author: Artem ZHIDKOV
5 #include "SketchPlugin_ConstraintLength.h"
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
10 SketchPlugin_ConstraintLength::SketchPlugin_ConstraintLength()
14 void SketchPlugin_ConstraintLength::initAttributes()
16 data()->addAttribute(CONSTRAINT_ATTR_VALUE, ModelAPI_AttributeDouble::type());
17 data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
20 void SketchPlugin_ConstraintLength::execute()
24 const boost::shared_ptr<GeomAPI_Shape>& SketchPlugin_ConstraintLength::preview()
26 /// \todo Preview for distance constraint