Salome HOME
Some fixes.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_CompositeBoolean.h
index 1e6a28175fff134bfeb721c6c1761c1d7306aadf..3f07d107b14ffc804f1e11285deed8b5ac447e3c 100644 (file)
@@ -50,6 +50,14 @@ public:
   /// Creates a new part document if needed.
   FEATURESPLUGIN_EXPORT virtual void executeCompositeBoolean();
 
+protected:
+  struct ResultBaseAlgo {
+    ResultBodyPtr resultBody;
+    GeomShapePtr baseShape;
+    std::shared_ptr<GeomAlgoAPI_MakeShape> makeShape;
+    int delTag;
+  };
+
 protected:
   FeaturesPlugin_CompositeBoolean(){};
 
@@ -82,6 +90,11 @@ protected:
                                 const std::shared_ptr<GeomAlgoAPI_MakeShape> theMakeShape,
                                 int& theTag);
 
+  /// Stores deleted shapes.
+  void storeDeletedShapes(std::vector<ResultBaseAlgo>& theResultBaseAlgoList,
+                          const ListOfShape& theTools,
+                          const GeomShapePtr theResultShapesCompound);
+
 protected:
   ModelAPI_Feature* myFeature;
   OperationType myOperationType;