X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Plugin.cpp;h=a53331c23136c6607b5e9bb0db96895111cbefa0;hb=363f70c6b79853f37aea293416c9fa972056754a;hp=954a0fb3c6786f30618271f2d7055b038dd8eea9;hpb=57199135053dfe0636ff8ff29eb6c75a6df6f08d;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Plugin.cpp b/src/FeaturesPlugin/FeaturesPlugin_Plugin.cpp index 954a0fb3c..a53331c23 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Plugin.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Plugin.cpp @@ -20,11 +20,17 @@ #include -#include +#include +#include +#include +#include +#include #include #include #include +#include #include +#include #include #include #include @@ -84,6 +90,20 @@ FeaturesPlugin_Plugin::FeaturesPlugin_Plugin() new FeaturesPlugin_ValidatorUnionArguments); aFactory->registerValidator("FeaturesPlugin_ValidatorConcealedResult", new FeaturesPlugin_ValidatorConcealedResult); + aFactory->registerValidator("FeaturesPlugin_ValidatorFilletSelection", + new FeaturesPlugin_ValidatorFilletSelection); + aFactory->registerValidator("FeaturesPlugin_ValidatorCircular", + new FeaturesPlugin_ValidatorCircular); + aFactory->registerValidator("FeaturesPlugin_ValidatorBooleanArguments", + new FeaturesPlugin_ValidatorBooleanArguments); + aFactory->registerValidator("FeaturesPlugin_ValidatorBooleanSmashSelection", + new FeaturesPlugin_ValidatorBooleanSmashSelection); + aFactory->registerValidator("FeaturesPlugin_IntersectionSelection", + new FeaturesPlugin_IntersectionSelection); + aFactory->registerValidator("FeaturesPlugin_ValidatorBooleanFuseSelection", + new FeaturesPlugin_ValidatorBooleanFuseSelection); + aFactory->registerValidator("FeaturesPlugin_ValidatorBooleanFuseArguments", + new FeaturesPlugin_ValidatorBooleanFuseArguments); // register this plugin ModelAPI_Session::get()->registerPlugin(this); @@ -99,8 +119,16 @@ FeaturePtr FeaturesPlugin_Plugin::createFeature(std::string theFeatureID) return FeaturePtr(new FeaturesPlugin_Rotation); } else if (theFeatureID == FeaturesPlugin_Translation::ID()) { return FeaturePtr(new FeaturesPlugin_Translation); - } else if (theFeatureID == FeaturesPlugin_Boolean::ID()) { - return FeaturePtr(new FeaturesPlugin_Boolean); + } else if (theFeatureID == FeaturesPlugin_BooleanCut::ID()) { + return FeaturePtr(new FeaturesPlugin_BooleanCut); + } else if (theFeatureID == FeaturesPlugin_BooleanFuse::ID()) { + return FeaturePtr(new FeaturesPlugin_BooleanFuse); + } else if (theFeatureID == FeaturesPlugin_BooleanCommon::ID()) { + return FeaturePtr(new FeaturesPlugin_BooleanCommon); + } else if (theFeatureID == FeaturesPlugin_BooleanSmash::ID()) { + return FeaturePtr(new FeaturesPlugin_BooleanSmash); + } else if (theFeatureID == FeaturesPlugin_BooleanFill::ID()) { + return FeaturePtr(new FeaturesPlugin_BooleanFill); } else if (theFeatureID == FeaturesPlugin_Intersection::ID()) { return FeaturePtr(new FeaturesPlugin_Intersection); } else if (theFeatureID == FeaturesPlugin_Partition::ID()) { @@ -131,6 +159,10 @@ FeaturePtr FeaturesPlugin_Plugin::createFeature(std::string theFeatureID) return FeaturePtr(new FeaturesPlugin_MultiTranslation); } else if (theFeatureID == FeaturesPlugin_MultiRotation::ID()) { return FeaturePtr(new FeaturesPlugin_MultiRotation); + } else if (theFeatureID == FeaturesPlugin_Fillet::ID()) { + return FeaturePtr(new FeaturesPlugin_Fillet); + } else if (theFeatureID == FeaturesPlugin_Measurement::ID()) { + return FeaturePtr(new FeaturesPlugin_Measurement); } // feature of such kind is not found