1 // File: SketchPlugin_Arc.cpp
2 // Created: 26 Apr 2014
3 // Author: Artem ZHIDKOV
5 #include "SketchPlugin_Arc.h"
6 #include "SketchPlugin_Sketch.h"
7 #include <ModelAPI_Data.h>
8 #include <GeomDataAPI_Point2D.h>
10 SketchPlugin_Arc::SketchPlugin_Arc()
11 : SketchPlugin_Feature()
15 void SketchPlugin_Arc::initAttributes()
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());
22 void SketchPlugin_Arc::execute()
26 const boost::shared_ptr<GeomAPI_Shape>& SketchPlugin_Arc::preview()
28 /// \todo Implement preview for arc of circle