Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / PartSet / PartSet_Tools.cpp
index 2241830377292853dfa92dd01de6976459625152..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,6 +159,13 @@ 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);