X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCollectionPlugin%2FCollectionPlugin_Plugin.cpp;h=db4a641b4a570494696791a76009913c5296af98;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=c1da4073945d47311911dcdd56d5d960e47d13fb;hpb=380f01e1fce1a012267d604a1190d04bf4659447;p=modules%2Fshaper.git diff --git a/src/CollectionPlugin/CollectionPlugin_Plugin.cpp b/src/CollectionPlugin/CollectionPlugin_Plugin.cpp index c1da40739..db4a641b4 100644 --- a/src/CollectionPlugin/CollectionPlugin_Plugin.cpp +++ b/src/CollectionPlugin/CollectionPlugin_Plugin.cpp @@ -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 #include #include +#include #include #include #include @@ -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();