Salome HOME
updated copyright message
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_Plugin.cpp
index c1da4073945d47311911dcdd56d5d960e47d13fb..db4a641b4a570494696791a76009913c5296af98 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -23,6 +23,7 @@
 #include <CollectionPlugin_GroupAddition.h>
 #include <CollectionPlugin_GroupIntersection.h>
 #include <CollectionPlugin_GroupSubstraction.h>
+#include <CollectionPlugin_GroupShape.h>
 #include <CollectionPlugin_Field.h>
 #include <CollectionPlugin_Validators.h>
 #include <ModelAPI_Session.h>
@@ -50,6 +51,8 @@ CollectionPlugin_Plugin::CollectionPlugin_Plugin()
     new CollectionPlugin_FieldValidator);
   aFactory->registerValidator("CollectionPlugin_OperationAttribute",
     new CollectionPlugin_GroupOperationAttributeValidator);
+  aFactory->registerValidator("CollectionPlugin_GroupSelectionValidator",
+    new CollectionPlugin_GroupSelectionValidator);
 
   // register this plugin
   ModelAPI_Session::get()->registerPlugin(this);
@@ -67,7 +70,9 @@ FeaturePtr CollectionPlugin_Plugin::createFeature(std::string theFeatureID)
     return FeaturePtr(new CollectionPlugin_GroupIntersection);
   } else if (theFeatureID == CollectionPlugin_GroupSubstraction::ID()) {
     return FeaturePtr(new CollectionPlugin_GroupSubstraction);
-  }
+  } else if (theFeatureID == CollectionPlugin_GroupShape::ID()) {
+     return FeaturePtr(new CollectionPlugin_GroupShape);
+   }
 
   // feature of such kind is not found
   return FeaturePtr();