Salome HOME
Dump with geometrical selection
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index e302d19a0634191fed1345f06ec8688ba64431ac..0b21a3c2eace9a55a4c442259fd127a57fee550e 100755 (executable)
@@ -200,6 +200,11 @@ MODELAPI_EXPORT void getConcealedResults(const std::shared_ptr<ModelAPI_Feature>
  */
 MODELAPI_EXPORT std::pair<std::string, bool> getDefaultName(
   const std::shared_ptr<ModelAPI_Result>& theResult, const bool theInherited = true);
+
+/*! Collect all parents for the given feature, including the Part
+ */
+MODELAPI_EXPORT std::set<std::shared_ptr<ModelAPI_Feature> >
+    getParents(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 }
 
 #endif