Salome HOME
ed5275b0091ffc5592a7a8ee54d17aa53d262c1c
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Arc.cpp
1 // File:        SketchPlugin_Arc.cpp
2 // Created:     26 Apr 2014
3 // Author:      Artem ZHIDKOV
4
5 #include "SketchPlugin_Arc.h"
6 #include "SketchPlugin_Sketch.h"
7 #include <ModelAPI_Data.h>
8 #include <GeomDataAPI_Point2D.h>
9
10 SketchPlugin_Arc::SketchPlugin_Arc()
11   : SketchPlugin_Feature()
12 {
13 }
14
15 void SketchPlugin_Arc::initAttributes()
16 {
17   data()->addAttribute(ARC_ATTR_CENTER, GeomDataAPI_Point2D::type());
18   data()->addAttribute(ARC_ATTR_START,  GeomDataAPI_Point2D::type());
19   data()->addAttribute(ARC_ATTR_END,    GeomDataAPI_Point2D::type());
20 }
21
22 void SketchPlugin_Arc::execute() 
23 {
24 }
25
26 const boost::shared_ptr<GeomAPI_Shape>& SketchPlugin_Arc::preview()
27 {
28   /// \todo Implement preview for arc of circle
29   return getPreview();
30 }