X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_Plugin.cpp;h=4c20e54ddcc2f84b1dcbdb071414530c62f66130;hb=4cb749258f33b7de231da5bb50140407c0599d30;hp=8849b519ab7156dd87d467ad107f073a8e62327f;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Plugin.cpp b/src/BuildPlugin/BuildPlugin_Plugin.cpp index 8849b519a..4c20e54dd 100644 --- a/src/BuildPlugin/BuildPlugin_Plugin.cpp +++ b/src/BuildPlugin/BuildPlugin_Plugin.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2017-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "BuildPlugin_Plugin.h" @@ -26,9 +25,15 @@ #include #include #include +#include +#include #include #include +#include +#include +#include #include +#include #include // the only created instance of this plugin @@ -46,8 +51,14 @@ BuildPlugin_Plugin::BuildPlugin_Plugin() new BuildPlugin_ValidatorBaseForWire()); aFactory->registerValidator("BuildPlugin_ValidatorBaseForFace", new BuildPlugin_ValidatorBaseForFace()); + aFactory->registerValidator("BuildPlugin_ValidatorBaseForSolids", + new BuildPlugin_ValidatorBaseForSolids()); aFactory->registerValidator("BuildPlugin_ValidatorSubShapesSelection", new BuildPlugin_ValidatorSubShapesSelection()); + aFactory->registerValidator("BuildPlugin_ValidatorFillingSelection", + new BuildPlugin_ValidatorFillingSelection()); + aFactory->registerValidator("BuildPlugin_ValidatorBaseForVertex", + new BuildPlugin_ValidatorBaseForVertex()); // Register this plugin. ModelAPI_Session::get()->registerPlugin(this); @@ -62,12 +73,24 @@ FeaturePtr BuildPlugin_Plugin::createFeature(std::string theFeatureID) return FeaturePtr(new BuildPlugin_Edge()); } else if(theFeatureID == BuildPlugin_Wire::ID()) { return FeaturePtr(new BuildPlugin_Wire()); - } else if(theFeatureID == BuildPlugin_Face::ID()) { + } else if (theFeatureID == BuildPlugin_Polyline::ID()) { + return FeaturePtr(new BuildPlugin_Polyline()); + } else if (theFeatureID == BuildPlugin_Interpolation::ID()) { + return FeaturePtr(new BuildPlugin_Interpolation()); + } else if (theFeatureID == BuildPlugin_Face::ID()) { return FeaturePtr(new BuildPlugin_Face()); } else if(theFeatureID == BuildPlugin_Shell::ID()) { return FeaturePtr(new BuildPlugin_Shell()); + } else if(theFeatureID == BuildPlugin_Solid::ID()) { + return FeaturePtr(new BuildPlugin_Solid()); + } else if(theFeatureID == BuildPlugin_CompSolid::ID()) { + return FeaturePtr(new BuildPlugin_CompSolid()); + } else if(theFeatureID == BuildPlugin_Compound::ID()) { + return FeaturePtr(new BuildPlugin_Compound()); } else if(theFeatureID == BuildPlugin_SubShapes::ID()) { return FeaturePtr(new BuildPlugin_SubShapes()); + } else if(theFeatureID == BuildPlugin_Filling::ID()) { + return FeaturePtr(new BuildPlugin_Filling()); } // Feature of such kind is not found.