X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Tools.h;h=b1947fc76e41e6ea70d4ada6bff0282290f2a6eb;hb=d2b0d7e910c2c28e3611c3adbf688810ff8edc37;hp=48ab0d57b892676cb315d481eacb94cd627efb9c;hpb=300a4b13eae43cfd61bda1a906f99d8513b7c3e1;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index 48ab0d57b..b1947fc76 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -56,6 +56,12 @@ QString XGUI_EXPORT addSlash(const QString& path); // The model concerning tools +/*! Unite object names in one string using the separator between values + \param theObjects a list of objects + \param theSeparator a separator + */ +QString unionOfObjectNames(const QObjectPtrList& theObjects, const QString& theSeparator); + /*! Returns true if the feature is a model object \param theFeature a feature @@ -110,6 +116,13 @@ void XGUI_EXPORT refsToFeatureInFeatureDocument(const ObjectPtr& theObject, */ bool XGUI_EXPORT isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& theFeature); +/*! +*/ +void refsDirectToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const ObjectPtr& theObject, + const QObjectPtrList& theIgnoreList, + std::set& theDirectRefFeatures, + std::set& theAlreadyProcessed); + /*! Returns a container of references feature to the source object. The search happens in the object document and in other Part documents if the object belongs to the PartSet. The search is recursive, @@ -118,13 +131,15 @@ bool XGUI_EXPORT isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& which has the object as a sub object. \param theSourceObject an object, which references are searched \param theObject an intermediate recursive object, should be set in the source object + \param theIgnoreList an ignore list, the found referernces which coincide with the objects are ignored \param theDirectRefFeatures direct references - \param theIndirectRefFeatures indirect references + \param theIndirectRefFeatures indirect references. These are features that refers to the direct features \param theAlreadyProcessed set of processed elements, used for optimization (do not reanalyse processed) \return a boolean value */ void XGUI_EXPORT refsToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const ObjectPtr& theObject, + const QObjectPtrList& theIgnoreList, std::set& theDirectRefFeatures, std::set& theIndirectRefFeatures, std::set& theAlreadyProcessed);