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 #include <AIS_InteractiveObject.hxx>
14 SketchPlugin_ConstraintRadius::SketchPlugin_ConstraintRadius()
18 void SketchPlugin_ConstraintRadius::initAttributes()
20 data()->addAttribute(CONSTRAINT_ATTR_VALUE, ModelAPI_AttributeDouble::type());
21 data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
23 data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE, ModelAPI_AttributeDouble::type());
24 data()->addAttribute(SKETCH_CONSTRAINT_ATTR_CIRCLE_POINT, GeomDataAPI_Point2D::type());
27 void SketchPlugin_ConstraintRadius::execute()
31 Handle(AIS_InteractiveObject) SketchPlugin_ConstraintRadius::getAISShape(
32 Handle_AIS_InteractiveObject thePrevious)
34 /// \todo Preview for diameter constraint