X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Intersection.h;h=67ed1b0a776e26649deebd8495a8391fd7e73a24;hb=ac6689aff8d62d06f13c278d146978a303a0e7db;hp=d7672cffba78b0ee880219ca011c0981d261d415;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Intersection.h b/src/FeaturesPlugin/FeaturesPlugin_Intersection.h index d7672cffb..67ed1b0a7 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Intersection.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Intersection.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 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,20 +12,15 @@ // // 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 // #ifndef FeaturesPlugin_Intersection_H_ #define FeaturesPlugin_Intersection_H_ -#include "FeaturesPlugin.h" - -#include - -#include +#include "FeaturesPlugin_VersionedBoolean.h" class GeomAlgoAPI_MakeShape; @@ -36,7 +31,7 @@ class GeomAlgoAPI_MakeShape; /// whole objects, compsoilds, solids, shells, faces or edges. /// The result is less than the minimal dimension from pair of intersection: /// for two solids or two faces it is wire, for the edge and face it is vertex, etc. -class FeaturesPlugin_Intersection : public ModelAPI_Feature +class FeaturesPlugin_Intersection : public FeaturesPlugin_VersionedBoolean { public: /// Feature kind. @@ -53,11 +48,18 @@ public: return MY_OBJECT_LIST_ID; } - /// Attribute name of tools. - inline static const std::string& TOOL_LIST_ID() + /// Attribute name of use fuzzy parameter. + inline static const std::string& USE_FUZZY_ID() + { + static const std::string MY_USE_FUZZY_ID("use_fuzzy"); + return MY_USE_FUZZY_ID; + } + + /// Attribute name of fuzzy parameter. + inline static const std::string& FUZZY_PARAM_ID() { - static const std::string MY_TOOL_LIST_ID("tool_objects"); - return MY_TOOL_LIST_ID; + static const std::string MY_FUZZY_PARAM_ID("fuzzy_param"); + return MY_FUZZY_PARAM_ID; } /// Returns the kind of a feature. @@ -75,13 +77,6 @@ public: /// Use plugin manager for features creation. FeaturesPlugin_Intersection(); - -private: - /// Load Naming data structure of the feature to the document. - void loadNamingDS(std::shared_ptr theResultBody, - const std::shared_ptr theBaseShape, - const ListOfShape& theTools, - GeomAlgoAPI_MakeShape& theMakeShape); }; #endif