Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / PartSet / PartSet_Tools.cpp
index 02f216cfcb7deb9520354995fb1e000df8e0952f..a8868beb7998ac9458e458b937e63ce8c6413787 100644 (file)
@@ -26,6 +26,8 @@
 #include <PartSet_FeatureArcPrs.h>
 
 #include <PartSet_FeatureLengthPrs.h>
+#include <PartSet_FeatureRadiusPrs.h>
+#include <PartSet_FeatureDistancePrs.h>
 
 #include <XGUI_ViewerPrs.h>
 
@@ -157,9 +159,16 @@ boost::shared_ptr<PartSet_FeaturePrs> PartSet_Tools::createFeaturePrs(const std:
   else if (theKind == PartSet_FeatureLengthPrs::getKind()) {
     aFeaturePrs = boost::shared_ptr<PartSet_FeaturePrs>(new PartSet_FeatureLengthPrs(theSketch));
   }
+  else if (theKind == PartSet_FeatureRadiusPrs::getKind()) {
+    aFeaturePrs = boost::shared_ptr<PartSet_FeatureRadiusPrs>(new PartSet_FeatureRadiusPrs(theSketch));
+  }
+  else if (theKind == PartSet_FeatureDistancePrs::getKind()) {
+    aFeaturePrs = boost::shared_ptr<PartSet_FeatureDistancePrs>(new PartSet_FeatureDistancePrs(theSketch));
+  }
+
 
   if (theFeature && aFeaturePrs)
-    aFeaturePrs->init(theFeature, FeaturePtr());
+    aFeaturePrs->init(theFeature);
 
   return aFeaturePrs;
 }