Exemple #1
0
 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;
     }
 }
Exemple #2
0
        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);
        }