Exemplo n.º 1
0
        internal void Run()
        {
            foreach (GeometryGraph graph in GetGeometryGraphs())
            {
                var br = new BundleRouter(graph, new SdShortestPath(transparentShapeSetter, null, null),
                                          interactiveEdgeRouter.VisibilityGraph, bundlingSettings, interactiveEdgeRouter.LoosePadding, interactiveEdgeRouter.TightHierarchy,
                                          interactiveEdgeRouter.LooseHierarchy, null, null, null);

                br.Run();
            }
        }
Exemplo n.º 2
0
        public static void RouteBundledEdges(GeometryGraph geometryGraph, bool measureTime, EdgeRoutingSettings edgeRoutingSettings)
        {
            Stopwatch sw = null;

            if (measureTime)
            {
                sw = new Stopwatch();
                sw.Start();
            }
            BundleRouter br = new BundleRouter(geometryGraph, edgeRoutingSettings.ConeAngle,
                                               edgeRoutingSettings.Padding, edgeRoutingSettings.PolylinePadding, edgeRoutingSettings.BundlingSettings);

            br.Run();
            if (sw != null)
            {
                sw.Stop();
                Console.WriteLine("bundling takes " + sw.Elapsed);
            }
        }
Exemplo n.º 3
0
 public static void RouteBundledEdges(GeometryGraph geometryGraph, bool measureTime, EdgeRoutingSettings edgeRoutingSettings) {
     Stopwatch sw=null;
     if (measureTime) {
         sw=new Stopwatch();
         sw.Start();
     }
     BundleRouter br = new BundleRouter(geometryGraph, edgeRoutingSettings.ConeAngle,
                                        edgeRoutingSettings.Padding, edgeRoutingSettings.PolylinePadding, edgeRoutingSettings.BundlingSettings);
     br.Run();
     if (sw != null) {
         sw.Stop();
         Console.WriteLine("bundling takes " + sw.Elapsed);
     }
 }