Salome HOME
Create Boolean operations
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Plugin.cpp
index 1c9273d5f18b6a37ccfa75889ba47f18745c6310..5c3fd3a4335c3beb3d5126536b28c03c9d392b96 100644 (file)
@@ -1,5 +1,6 @@
 #include "FeaturesPlugin_Plugin.h"
 #include "FeaturesPlugin_Extrusion.h"
+#include "FeaturesPlugin_Boolean.h"
 
 #include <ModelAPI_PluginManager.h>
 #include <ModelAPI_Document.h>
@@ -9,7 +10,7 @@ using namespace std;
 // the only created instance of this plugin
 static FeaturesPlugin_Plugin* MY_INSTANCE = new FeaturesPlugin_Plugin();
 
-FeaturesPlugin_Plugin::FeaturesPlugin_Plugin() 
+FeaturesPlugin_Plugin::FeaturesPlugin_Plugin()
 {
   // register this plugin
   ModelAPI_PluginManager::get()->registerPlugin(this);
@@ -17,8 +18,11 @@ FeaturesPlugin_Plugin::FeaturesPlugin_Plugin()
 
 FeaturePtr FeaturesPlugin_Plugin::createFeature(string theFeatureID)
 {
-  if (theFeatureID == FEATURES_EXTRUSION_KIND) {
+  if (theFeatureID == FeaturesPlugin_Extrusion::ID()) {
     return FeaturePtr(new FeaturesPlugin_Extrusion);
+  } else
+  if (theFeatureID == FeaturesPlugin_Boolean::ID()) {
+    return FeaturePtr(new FeaturesPlugin_Boolean);
   }
   // feature of such kind is not found
   return FeaturePtr();