Salome HOME
Improve angle measurement
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index c119924cb88d16a43106dd9a0de15b69879d9de0..907cc7b974a9df0f996c51c699a4024566878418 100755 (executable)
@@ -186,6 +186,18 @@ MODELAPI_EXPORT void findRefsToFeatures(
 */
 MODELAPI_EXPORT void getConcealedResults(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                    std::list<std::shared_ptr<ModelAPI_Result> >& theResults);
+
+/*! Return the default name of the result according the features it depends.
+ *  Return also whether the name is get from the concealing result of parent object
+ *  (means that concealing result has user-defined name).
+ */
+MODELAPI_EXPORT std::pair<std::string, bool> getDefaultName(
+    const std::shared_ptr<ModelAPI_Result>& theResult,
+    const int theResultIndex);
+
+/*! Return the default name of the result according to name of the feature.
+ */
+MODELAPI_EXPORT std::string getDefaultName(const std::shared_ptr<ModelAPI_Result>& theResult);
 }
 
 #endif