X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_Plugin.cpp;h=45d29c9532bb7530229cd9962b9ae37cfbbbdf23;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=4a0097948477332a87348799929f6737a5d9959e;hpb=9a9079c59a6aaefb49725080f178559415482a19;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Plugin.cpp b/src/BuildPlugin/BuildPlugin_Plugin.cpp index 4a0097948..45d29c953 100644 --- a/src/BuildPlugin/BuildPlugin_Plugin.cpp +++ b/src/BuildPlugin/BuildPlugin_Plugin.cpp @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: BuildPlugin_Plugin.cpp -// Created: 18 April 2016 -// Author: Dmitry Bobylev +// Copyright (C) 2017-2024 CEA, EDF +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #include "BuildPlugin_Plugin.h" @@ -12,9 +25,15 @@ #include #include #include +#include +#include #include #include +#include +#include +#include #include +#include #include // the only created instance of this plugin @@ -32,8 +51,16 @@ 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()); + aFactory->registerValidator("BuildPlugin_ValidatorExpressionInterpolation", + new BuildPlugin_ValidatorExpressionInterpolation()); // Register this plugin. ModelAPI_Session::get()->registerPlugin(this); @@ -48,12 +75,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.