X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFeaturesPlugin%2FFeaturesPlugin_BooleanCut.h;h=4ae4463eb0609e124e97abfaf71877de09f3bd25;hb=34c2ee35f2b8ae2ef7a0673c7841f11078e06f3c;hp=f53afa973e2e704186402a3a26f633e87601d749;hpb=e65bf14e2ff3cf853884bf8998fadcece6e3b34c;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_BooleanCut.h b/src/FeaturesPlugin/FeaturesPlugin_BooleanCut.h index f53afa973..4ae4463eb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_BooleanCut.h +++ b/src/FeaturesPlugin/FeaturesPlugin_BooleanCut.h @@ -23,10 +23,13 @@ #include "FeaturesPlugin_Boolean.h" +#include +#include + /// \class FeaturesPlugin_BooleanCut /// \ingroup Plugins /// \brief Feature for applying of Boolean Cut operation. -class FeaturesPlugin_BooleanCut : public FeaturesPlugin_Boolean +class FeaturesPlugin_BooleanCut: public FeaturesPlugin_Boolean { public: @@ -44,10 +47,24 @@ public: return MY_KIND; } + /// Creates a new part document if needed. + FEATURESPLUGIN_EXPORT virtual void execute(); + public: - /// Use plugin manager for features creation. - FeaturesPlugin_BooleanCut(): FeaturesPlugin_Boolean(BOOL_CUT) {}; + /// Use plugin manager for features creation. + FeaturesPlugin_BooleanCut(); + +private: + + /// Load Naming data structure of the feature to the document + void loadNamingDS(ResultBodyPtr theResultBody, + const GeomShapePtr theBaseShape, + const ListOfShape& theTools, + const GeomShapePtr theResultShape, + GeomAlgoAPI_MakeShape& theMakeShape, + GeomAPI_DataMapOfShapeShape& theMapOfShapes, + const bool theIsStoreAsGenerated = false); };