示例#1
0
        /// <summary>
        /// Apply layout
        /// </summary>
        protected override void RunInternal()
        {
            PreRunTransform(geometryGraph, settings.Transformation);

            engine.Run();
            geometryGraph.AlgorithmData = engine;

            PostRunTransform(geometryGraph, settings.Transformation);
        }
示例#2
0
        internal static LayeredLayoutEngine CalculateLayout(GeometryGraph msaglGraph, SugiyamaLayoutSettings settings, CancelToken cancelToken)
        {
            var engine = new LayeredLayoutEngine(msaglGraph, settings);

#if USE_PHYLOTREE
            PhyloTree phyloTree = msaglGraph as PhyloTree;
            if (phyloTree != null)
            {
                var pc = new PhyloTreeLayoutCalclulation(phyloTree, settings, engine.IntGraph, engine.Database);
                pc.Run();
            }
            else
#endif
            engine.Run(cancelToken);
            return(engine);
        }