X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Fillet.h;h=784c585bb005858b97f9c2f004adbf9b537bcd5c;hb=371adab6b0fad916f5f9f35dd64ae23f74b5c489;hp=15472e2179684a0b717f7112252aab367ef0c051;hpb=9b61e5ee5eafe9d6948d9a78667efa2abec132c3;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Fillet.h b/src/FeaturesPlugin/FeaturesPlugin_Fillet.h index 15472e217..784c585bb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Fillet.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Fillet.h @@ -1,4 +1,4 @@ -// Copyright (C) 2017 CEA/DEN, EDF R&D +// Copyright (C) 2017-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,29 +12,21 @@ // // 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_Fillet_H_ #define FeaturesPlugin_Fillet_H_ -#include "FeaturesPlugin.h" - -#include - -#include - -class GeomAlgoAPI_MakeShape; -class GeomAPI_DataMapOfShapeMapOfShapes; +#include "FeaturesPlugin_VersionedChFi.h" /// \class FeaturesPlugin_Fillet /// \ingroup Plugins /// \brief Feature for applying the Fillet operations on Solids. /// Supports fixed radius fillet and varying 2-radius fillet. -class FeaturesPlugin_Fillet : public ModelAPI_Feature +class FeaturesPlugin_Fillet : public FeaturesPlugin_VersionedChFi { public: /// Feature kind. @@ -96,9 +88,6 @@ public: return START_RADIUS_ID(); } - /// Creates a new part document if needed. - FEATURESPLUGIN_EXPORT virtual void execute(); - /// Request for initialization of data model of the feature: adding all attributes. FEATURESPLUGIN_EXPORT virtual void initAttributes(); @@ -106,11 +95,15 @@ public: FeaturesPlugin_Fillet(); private: - /// Load Naming data structure of the feature to the document - void loadNamingDS(std::shared_ptr theResultBody, - const std::shared_ptr theBaseShape, - const std::shared_ptr theResultShape, - const std::shared_ptr& theMakeShape); + /// Return attribute storing the selected objects of the operation. + virtual std::shared_ptr objectsAttribute(); + + /// Return name of modified shape prefix name + virtual const std::string& modifiedShapePrefix() const; + + /// Run chamfer/fillet operation and returns the modification algorithm if succeed. + virtual std::shared_ptr + performOperation(const GeomShapePtr& theSolid, const ListOfShape& theEdges); }; #endif