]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Tools.h
Salome HOME
Merge remote-tracking branch 'remotes/origin/occ/compounds_processing'
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index 96e024985ca9fa63e9eeea2c470c474f48c57594..a90cd60fa461c124dad9516f301a20cc3ec71156 100644 (file)
@@ -30,6 +30,7 @@ class ModelAPI_ResultParameter;
 class ModelAPI_ResultBody;
 
 class GeomAPI_Shape;
+class GeomAPI_ShapeHierarchy;
 
 #include <memory>
 #include <vector>
@@ -206,6 +207,16 @@ MODELAPI_EXPORT std::pair<std::string, bool> getDefaultName(
 MODELAPI_EXPORT std::set<std::shared_ptr<ModelAPI_Feature> >
     getParents(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
+/*! Store shape and its parent shape to the hierarchy data structure
+ *  \param[in] theShape      the shape to store
+ *  \param[in] theContext    the result (parent shape) for the given shape
+ *  \param[out] theHierarchy container for shape hierarchy
+ */
+MODELAPI_EXPORT void fillShapeHierarchy(
+    const std::shared_ptr<GeomAPI_Shape>& theShape,
+    const std::shared_ptr<ModelAPI_Result>& theContext,
+    GeomAPI_ShapeHierarchy& theHierarchy);
+
 /*! Creates a remove result features with the given results
 */
 MODELAPI_EXPORT void removeResults(const std::list<std::shared_ptr<ModelAPI_Result> >& theResults);