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;
        }
Beispiel #2
0
        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();
		}