Salome HOME
Small refactoring: separate storing a compound of sub-results.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Boolean.h
index 6fe5a24d623432c64a60cba9d3a4fbc00b29c382..c18d2eb67fb8e78061bd0eb85eaa657aeb5ef28a 100644 (file)
@@ -223,6 +223,14 @@ protected:
       const ObjectHierarchy& theToolsHierarchy,
       std::shared_ptr<GeomAlgoAPI_MakeShapeList> theMakeShapeList);
 
+  /// Store result shape if it is not empty and increase results counter
+  void storeResult(const ListOfShape& theObjects,
+                   const ListOfShape& theTools,
+                   const GeomShapePtr theResultShape,
+                   int& theResultIndex,
+                   std::shared_ptr<GeomAlgoAPI_MakeShapeList> theMakeShapeList,
+                   std::vector<FeaturesPlugin_Tools::ResultBaseAlgo>& theResultBaseAlgoList);
+
   /// Return version of the feature
   int version();