예제 #1
0
파일: Scheme.cpp 프로젝트: laduga/pradis
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;
}
예제 #2
0
파일: Scheme.cpp 프로젝트: laduga/pradis
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;
}