public RenderTileServer() { plotter.PerformLoad(); plotter.Viewport.PropertyChanged += Viewport_PropertyChanged; plotter.ViewportClipToBoundsEnlargeFactor = 1; plotter.Measure(tileSize); plotter.Arrange(new Rect(tileSize)); TileWidth = (int)tileSize.Width; TileHeight = (int)tileSize.Height; ServerName = "Render"; DeleteFileCacheOnUpdate = true; MinLevel = int.MinValue; MaxLevel = int.MaxValue; }
private void RenderTask() { var threadIndex = Array.IndexOf <Thread>(renderingThreads, Thread.CurrentThread); CapturingPlotter plotter = new CapturingPlotter(); plotters[threadIndex] = plotter; plotter.PerformLoad(); plotter.ViewportClipToBoundsEnlargeFactor = 1; plotter.Measure(tileSize); plotter.Arrange(new Rect(tileSize)); Interlocked.Increment(ref createdPlottersCount); AddChildToPlotter(plotter); plotter.Dispatcher.Hooks.DispatcherInactive += Hooks_DispatcherInactive; Dispatcher.Run(); }
private void RenderTask() { var threadIndex = Array.IndexOf<Thread>(renderingThreads, Thread.CurrentThread); CapturingPlotter plotter = new CapturingPlotter(); plotters[threadIndex] = plotter; plotter.PerformLoad(); plotter.ViewportClipToBoundsEnlargeFactor = 1; plotter.Measure(tileSize); plotter.Arrange(new Rect(tileSize)); Interlocked.Increment(ref createdPlottersCount); AddChildToPlotter(plotter); plotter.Dispatcher.Hooks.DispatcherInactive += Hooks_DispatcherInactive; Dispatcher.Run(); }