Salome HOME
Issue #2490: Place toolbars into 3 rows by default
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_BooleanCut.h
index f53afa973e2e704186402a3a26f633e87601d749..4ae4463eb0609e124e97abfaf71877de09f3bd25 100644 (file)
 
 #include "FeaturesPlugin_Boolean.h"
 
+#include <ModelAPI_Feature.h>
+#include <ModelAPI_ResultBody.h>
+
 /// \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);
 
 };