af::TElement Scheme::SetEqvList() { if(Root.IsNull()) { throw NoLabelInicialisationException("Scheme: label do not inicialised."); } RemoveElementByName("EqvList"); TList B; B.SetRoot(Root); EqvList = B.Add(); EqvList.SetName ("EqvList"); return EqvList; }
af::TElement Scheme::SetDataList() { if(Root.IsNull()) { throw NoLabelInicialisationException("Scheme: label do not inicialised."); } RemoveElementByName("DataList"); TDF_Label NewLabel = TDF_TagSource::NewChild(Root); Handle(TDataStd_TreeNode) NewNode = TDataStd_TreeNode::Set(NewLabel); Handle(TDataStd_TreeNode) CurrNode; Root.FindAttribute(TDataStd_TreeNode::GetDefaultTreeID(),CurrNode); CurrNode->Append(NewNode); TList B; B.SetRoot(NewLabel); B.SetName("DataList"); DataList = B; return B; }