Salome HOME
Task 3.2. To keep compounds’ sub-shapes for all operations (issue #3139)
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Tools.h
index 36ad73bdd053cbbdaf17b54bae6ae975ef5c01b0..6fe514aa9e744413c2e168a00cd80ea38791b7e9 100644 (file)
@@ -21,6 +21,7 @@
 #define FeaturesPlugin_Tools_H_
 
 #include <GeomAlgoAPI_MakeShape.h>
+#include <GeomAPI_ShapeHierarchy.h>
 #include <ModelAPI_ResultBody.h>
 
 #include <vector>
@@ -62,6 +63,13 @@ public:
                        const bool theShareTopology,
                        ListOfShape& theShapesList,
                        std::string& theError);
+
+  /// Collect shapes from the attribute and fill the hierarchy or a list of parts
+  static bool shapesFromSelectionList(
+      const std::shared_ptr<ModelAPI_AttributeSelectionList> theSelectionList,
+      const bool theStoreFullHierarchy,
+      GeomAPI_ShapeHierarchy& theHierarchy,
+      std::list<ResultPtr>& theParts);
 };
 
 #endif /* FeaturesPlugin_Tools_H_ */