const TDF_AttributeDeltaList& anAttrs = aDelta->AttributeDeltas();
for (TDF_ListIteratorOfAttributeDeltaList anAttr(anAttrs); anAttr.More(); anAttr.Next()) {
Handle(TDF_AttributeDelta)& anADelta = anAttr.Value();
- Handle(TDF_DeltaOnAddition)& anAddition = Handle(TDF_DeltaOnAddition)::DownCast(anADelta);
+ Handle(TDF_DeltaOnAddition) anAddition = Handle(TDF_DeltaOnAddition)::DownCast(anADelta);
if (anAddition.IsNull()) { // if the attribute was added, transaction is not empty
if (!anADelta->Label().IsNull() && !anADelta->Attribute().IsNull()) {
Handle(TDF_Attribute) aCurrentAttr;
}
}
-//**************************************************************
-bool XGUI_Tools::isSubOfComposite(const ObjectPtr& theObject)
-{
- bool isSub = false;
- std::set<FeaturePtr> aRefFeatures;
- refsToFeatureInFeatureDocument(theObject, aRefFeatures);
- std::set<FeaturePtr>::const_iterator anIt = aRefFeatures.begin(),
- aLast = aRefFeatures.end();
- for (; anIt != aLast && !isSub; anIt++) {
- isSub = isSubOfComposite(theObject, *anIt);
- }
- return isSub;
-}
-
//**************************************************************
bool isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& theFeature)
{
return isSub;
}
+//**************************************************************
+bool isSubOfComposite(const ObjectPtr& theObject)
+{
+ bool isSub = false;
+ std::set<FeaturePtr> aRefFeatures;
+ refsToFeatureInFeatureDocument(theObject, aRefFeatures);
+ std::set<FeaturePtr>::const_iterator anIt = aRefFeatures.begin(),
+ aLast = aRefFeatures.end();
+ for (; anIt != aLast && !isSub; anIt++) {
+ isSub = isSubOfComposite(theObject, *anIt);
+ }
+ return isSub;
+}
+
//**************************************************************
void refsToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const ObjectPtr& theObject,
std::set<FeaturePtr>& theDirectRefFeatures,
\param theFeature a candidate to be a composite feature
\return a boolean value
*/
-bool XGUI_EXPORT isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& theFeature);
+bool XGUI_EXPORT isSubOfComposite(const ObjectPtr& theObject);
/*!
Returns a container of references feature to the source object. The search happens in the object