/// <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); }
/// <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(); }
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); }
/// <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(); }