X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Intersection.h;h=0b0dc9d1c2a39de09b157f712d23986991dd4480;hb=88ee9b2b81cf93a6324336b57e30cc8a3a487499;hp=d70ae1ddd3f7496231af687a5b37e18a9f402f25;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Intersection.h b/src/FeaturesPlugin/FeaturesPlugin_Intersection.h index d70ae1ddd..0b0dc9d1c 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,19 +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; @@ -35,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. @@ -52,13 +48,6 @@ public: return MY_OBJECT_LIST_ID; } - /// Attribute name of tools. - inline static const std::string& TOOL_LIST_ID() - { - static const std::string MY_TOOL_LIST_ID("tool_objects"); - return MY_TOOL_LIST_ID; - } - /// Returns the kind of a feature. FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { @@ -74,13 +63,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