1 // File: SketchPlugin_ConstraintRadius.cpp
2 // Created: 26 May 2014
3 // Author: Artem ZHIDKOV
5 #include "SketchPlugin_ConstraintRadius.h"
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9 #include <GeomDataAPI_Point2D.h>
10 #include <SketchPlugin_Point.h>
12 SketchPlugin_ConstraintRadius::SketchPlugin_ConstraintRadius()
16 void SketchPlugin_ConstraintRadius::initAttributes()
18 data()->addAttribute(CONSTRAINT_ATTR_VALUE, ModelAPI_AttributeDouble::type());
19 data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
21 data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE, ModelAPI_AttributeDouble::type());
22 data()->addAttribute(SKETCH_CONSTRAINT_ATTR_CIRCLE_POINT, GeomDataAPI_Point2D::type());
25 void SketchPlugin_ConstraintRadius::execute()
29 const boost::shared_ptr<GeomAPI_Shape>& SketchPlugin_ConstraintRadius::preview()
31 /// \todo Preview for diameter constraint