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