X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Plugin.cpp;h=23a6cf05a17cc3fb364a10d7f616943df9d71c6b;hb=587c5c1821f464e323eec057ba860b2433d4f412;hp=1149409813a5645b6b24018d974e55aa79b3f29b;hpb=6654a921211670c15a79a997ca666a174fe8a6f6;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Plugin.cpp b/src/SketchPlugin/SketchPlugin_Plugin.cpp index 114940981..23a6cf05a 100644 --- a/src/SketchPlugin/SketchPlugin_Plugin.cpp +++ b/src/SketchPlugin/SketchPlugin_Plugin.cpp @@ -1,5 +1,15 @@ #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_ConstraintLength.h" +#include "SketchPlugin_ConstraintParallel.h" +#include "SketchPlugin_ConstraintPerpendicular.h" +#include "SketchPlugin_ConstraintRadius.h" #include #include @@ -19,9 +29,33 @@ boost::shared_ptr SketchPlugin_Plugin::createFeature(string th if (theFeatureID == "Sketch") { return boost::shared_ptr(new SketchPlugin_Sketch); } - /*else if (theFeatureID == "Point") { - return shared_ptr(new SketchPlugin_Point); - }*/ + else if (theFeatureID == "SketchPoint") { + return boost::shared_ptr(new SketchPlugin_Point); + } + else if (theFeatureID == "SketchLine") { + return boost::shared_ptr(new SketchPlugin_Line); + } + else if (theFeatureID == "SketchCircle") { + return boost::shared_ptr(new SketchPlugin_Circle); + } + else if (theFeatureID == "SketchConstraintCoincidence") { + return boost::shared_ptr(new SketchPlugin_ConstraintCoincidence); + } + else if (theFeatureID == "SketchConstraintDistance") { + return boost::shared_ptr(new SketchPlugin_ConstraintDistance); + } + else if (theFeatureID == "SketchConstraintLength") { + return boost::shared_ptr(new SketchPlugin_ConstraintLength); + } + else if (theFeatureID == "SketchConstraintParallel") { + return boost::shared_ptr(new SketchPlugin_ConstraintParallel); + } + else if (theFeatureID == "SketchConstraintPerpendicular") { + return boost::shared_ptr(new SketchPlugin_ConstraintPerpendicular); + } + else if (theFeatureID == "SketchConstraintRadius") { + return boost::shared_ptr(new SketchPlugin_ConstraintRadius); + } // feature of such kind is not found return boost::shared_ptr(); }