コード例 #1
0
 public CachingPlotOperation(IRenderPlotOperation <TRenderTile, TContext> parent,
                             IMapNavigator <GridDirection> mapNavigator,
                             IMapRenderArea viewport)
 {
     this.recordingRenderer = new RecordingRenderer(viewport, mapNavigator, parent.ActiveRenderer);
     this.parent            = parent;
     this.parent.Renderer   = recordingRenderer;
 }
コード例 #2
0
 public GridPlotter(IMapRenderArea viewport,
                    IMapNavigator <GridDirection> navigator,
                    IMapNavigator <GridDirection> screenNavigator = null)
 {
     //this.plotOperation = plotOperation ?? throw new ArgumentNullException(nameof(plotOperation));
     this.viewport        = viewport ?? throw new ArgumentNullException(nameof(viewport));
     mapAccessNavigator   = navigator ?? throw new ArgumentNullException(nameof(navigator));
     this.screenNavigator = screenNavigator ?? GridNavigation.CreateNavigator(viewport.RenderType);
 }