X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Chamfer.h;h=bdee869280098d2b0e7fea5cc22bf453face639e;hb=b3f7b461d00b6ddf3736c8284498a9f33428577c;hp=cad7204e980f8507228a17aaa0b3e7e78ec41eb3;hpb=3c987a8d1b88765224e3ac1388afb91eae17e4d3;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Chamfer.h b/src/FeaturesPlugin/FeaturesPlugin_Chamfer.h index cad7204e9..bdee86928 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Chamfer.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Chamfer.h @@ -1,4 +1,4 @@ -// Copyright (C) 2017-2019 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 @@ -20,20 +20,13 @@ #ifndef FeaturesPlugin_Chamfer_H_ #define FeaturesPlugin_Chamfer_H_ -#include "FeaturesPlugin.h" - -#include - -#include - -class GeomAlgoAPI_MakeShape; -class GeomAPI_DataMapOfShapeMapOfShapes; +#include "FeaturesPlugin_VersionedChFi.h" /// \class FeaturesPlugin_Chamfer /// \ingroup Plugins /// \brief Feature for applying the Chamfer operations on Solids. /// Supports two distances chamfer and distance-angle chamfer. -class FeaturesPlugin_Chamfer : public ModelAPI_Feature +class FeaturesPlugin_Chamfer : public FeaturesPlugin_VersionedChFi { public: /// Feature kind. @@ -103,9 +96,6 @@ public: return MY_ANGLE_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(); @@ -113,11 +103,15 @@ public: FeaturesPlugin_Chamfer(); 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