#include "SketchPlugin_Plugin.h"
#include "SketchPlugin_Sketch.h"
#include "SketchPlugin_Line.h"
+#include "SketchPlugin_Point.h"
+#include "SketchPlugin_Circle.h"
+#include "SketchPlugin_Arc.h"
#include "SketchPlugin_ConstraintCoincidence.h"
+#include "SketchPlugin_ConstraintDistance.h"
+#include "SketchPlugin_ConstraintDiameter.h"
+#include "SketchPlugin_ConstraintParallel.h"
+#include "SketchPlugin_ConstraintPerpendicular.h"
#include <ModelAPI_PluginManager.h>
#include <ModelAPI_Document.h>
if (theFeatureID == "Sketch") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Sketch);
}
+ else if (theFeatureID == "SketchPoint") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Point);
+ }
else if (theFeatureID == "SketchLine") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Line);
}
+ else if (theFeatureID == "SketchCircle") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Circle);
+ }
else if (theFeatureID == "SketchConstraintCoincidence") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintCoincidence);
}
+ else if (theFeatureID == "SketchConstraintDistance") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintDistance);
+ }
+ else if (theFeatureID == "SketchConstraintDiameter") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintDiameter);
+ }
+ else if (theFeatureID == "SketchConstraintParallel") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintParallel);
+ }
+ else if (theFeatureID == "SketchConstraintPerpendicular") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintPerpendicular);
+ }
// feature of such kind is not found
return boost::shared_ptr<ModelAPI_Feature>();
}