コード例 #1
0
        /// <summary>
        /// calculates all data necessery for large graph browsing
        /// </summary>
        /// <param name="geometryGraph"></param>
        /// <param name="settings"></param>
        /// <param name="cancelToken"></param>
        static public void LayoutLargeGraphWithLayers(GeometryGraph geometryGraph, LayoutAlgorithmSettings settings, CancelToken cancelToken, string tileDirectory)
        {
            var largeGraphLayoutSettings = (LgLayoutSettings)settings;
            var largeGraphLayout         = new LgInteractor(geometryGraph, largeGraphLayoutSettings, cancelToken);

            largeGraphLayoutSettings.Interactor = largeGraphLayout;
            largeGraphLayout.Run(tileDirectory);
        }
コード例 #2
0
        /// <summary>
        /// initializes large layout algorithm
        /// </summary>
        /// <param name="geometryGraph"></param>
        /// <param name="settings"></param>
        /// <param name="cancelToken"></param>
        static public void InitLargeLayout(GeometryGraph geometryGraph, LayoutAlgorithmSettings settings, CancelToken cancelToken)
        {
            var largeGraphLayoutSettings = (LgLayoutSettings)settings;
            var largeGraphLayout         = new LgInteractor(geometryGraph, largeGraphLayoutSettings, cancelToken);

            largeGraphLayoutSettings.Algorithm = largeGraphLayout;
            largeGraphLayout.Initialize();
        }
コード例 #3
0
        void RouteChangedEdges()
        {
            ChangedGraph = GetChangedFlatGraph();
            var changedClusteredGraph = LgInteractor.CreateClusteredSubgraphFromFlatGraph(ChangedGraph, graph);


            InitLabelFixtures(changedClusteredGraph);
            var router = new SplineRouter(changedClusteredGraph, layoutSettings.EdgeRoutingSettings.Padding,
                                          layoutSettings.EdgeRoutingSettings.PolylinePadding,
                                          layoutSettings.EdgeRoutingSettings.ConeAngle,
                                          layoutSettings.EdgeRoutingSettings.BundlingSettings)
            {
                ContinueOnOverlaps
                    = true
            };

            router.Run();
            PositionLabels(changedClusteredGraph);
        }
コード例 #4
0
 /// <summary>
 /// calculates all data necessery for large graph browsing
 /// </summary>
 /// <param name="geometryGraph"></param>
 /// <param name="settings"></param>
 /// <param name="cancelToken"></param>
 static public void LayoutLargeGraphWithLayers(GeometryGraph geometryGraph, LayoutAlgorithmSettings settings, CancelToken cancelToken) {
     var largeGraphLayoutSettings = (LgLayoutSettings) settings;
     var largeGraphLayout = new LgInteractor(geometryGraph, largeGraphLayoutSettings, cancelToken);
     largeGraphLayoutSettings.Interactor = largeGraphLayout;
     largeGraphLayout.Run();
 }