#include "SketchPlugin.h"
#include <SketchPlugin_Feature.h>
+#include <SketchPlugin_Sketch.h>
+
+/// Circle feature kind
+const std::string SKETCH_CIRCLE_KIND("SketchCircle");
/// 2D point - center of the circle
const std::string CIRCLE_ATTR_CENTER("CircleCenter");
public:
/// Returns the kind of a feature
SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
- {static std::string MY_KIND = "SketchCircle"; return MY_KIND;}
+ {static std::string MY_KIND = SKETCH_CIRCLE_KIND; return MY_KIND;}
/// Returns to which group in the document must be added feature
SKETCHPLUGIN_EXPORT virtual const std::string& getGroup()
- {static std::string MY_GROUP = "Sketch"; return MY_GROUP;}
+ {static std::string MY_GROUP = SKETCH_KIND; return MY_GROUP;}
/// Creates a new part document if needed
SKETCHPLUGIN_EXPORT virtual void execute();
/// Adds sub-feature of the higher level feature (sub-element of the sketch)
/// \param theFeature sub-feature
SKETCHPLUGIN_EXPORT virtual const void addSub(
- const boost::shared_ptr<ModelAPI_Feature>& theFeature) {};
+ const FeaturePtr& theFeature) {};
/// Use plugin manager for features creation
SketchPlugin_Circle();