Salome HOME
"Initialization" plugin: plugin and it's features stubs created
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plugin.cpp
index 008d139525b066dd750a13e0b05868bcec707bd0..f06bd7635440f443c99e3bb42532f58711b33bb4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ConstructionPlugin_Plugin.h"
 #include "ConstructionPlugin_Point.h"
+#include "ConstructionPlugin_Axis.h"
+#include "ConstructionPlugin_Plane.h"
 
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Document.h>
@@ -19,9 +21,15 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin()
 
 FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID)
 {
-  if (theFeatureID == CONSTRUCTION_POINT_KIND) {
+  if (theFeatureID == ConstructionPlugin_Point::ID()) {
     return FeaturePtr(new ConstructionPlugin_Point);
   }
+  else if (theFeatureID == ConstructionPlugin_Axis::ID()) {
+    return FeaturePtr(new ConstructionPlugin_Axis);
+  }
+  else if (theFeatureID == ConstructionPlugin_Plane::ID()) {
+    return FeaturePtr(new ConstructionPlugin_Plane);
+  }
   // feature of such kind is not found
   return FeaturePtr();
 }