Salome HOME
Move generation of AIS presentation into SketchPlugin
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintRadius.cpp
1 // File:    SketchPlugin_ConstraintRadius.cpp
2 // Created: 26 May 2014
3 // Author:  Artem ZHIDKOV
4
5 #include "SketchPlugin_ConstraintRadius.h"
6
7 #include <ModelAPI_AttributeDouble.h>
8 #include <ModelAPI_Data.h>
9 #include <GeomDataAPI_Point2D.h>
10 #include <SketchPlugin_Point.h>
11
12 #include <AIS_InteractiveObject.hxx>
13
14 SketchPlugin_ConstraintRadius::SketchPlugin_ConstraintRadius()
15 {
16 }
17
18 void SketchPlugin_ConstraintRadius::initAttributes()
19 {
20   data()->addAttribute(CONSTRAINT_ATTR_VALUE,    ModelAPI_AttributeDouble::type());
21   data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type());
22
23   data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE, ModelAPI_AttributeDouble::type());
24   data()->addAttribute(SKETCH_CONSTRAINT_ATTR_CIRCLE_POINT, GeomDataAPI_Point2D::type());
25 }
26
27 void SketchPlugin_ConstraintRadius::execute()
28 {
29 }
30
31 Handle(AIS_InteractiveObject) SketchPlugin_ConstraintRadius::getAISShape(
32   Handle_AIS_InteractiveObject thePrevious)
33 {
34   /// \todo Preview for diameter constraint
35   return thePrevious;
36 }
37