static void AssignLengthsToGeometryEdges(Microsoft.Msagl.Prototype.Phylo.PhyloTree phyloGeometryTree) { foreach (Microsoft.Msagl.Prototype.Phylo.PhyloEdge msaglEdge in phyloGeometryTree.Edges) { var drawingEdge = msaglEdge.UserData as PhyloEdge; msaglEdge.Length = drawingEdge.Length; } }
internal static GeometryGraph CreatePhyloTree(PhyloTree drawingTree) { var creator = new GeometryGraphCreator(drawingTree); var phyloTree = new Microsoft.Msagl.Prototype.Phylo.PhyloTree(); creator.FillPhyloTree(phyloTree); AssignLengthsToGeometryEdges(phyloTree); return(phyloTree); }