public FrameBuffer(FrameBufferModel frameBufferModel, DisplayModel displayModel, IGraphicFactory graphicFactory) { this.frameBufferModel = frameBufferModel; this.displayModel = displayModel; this.graphicFactory = graphicFactory; this.matrix = graphicFactory.CreateMatrix(); }
internal CanvasRasterer(IGraphicFactory graphicFactory) { this.symbolMatrix = graphicFactory.CreateMatrix(); this.path = graphicFactory.CreatePath(); // TODO: Delete this.graphicFactory = graphicFactory; }
public TileStoreLayer(TileCache tileCache, MapViewPosition mapViewPosition, IGraphicFactory graphicFactory, bool isTransparent) : base(tileCache, mapViewPosition, graphicFactory.CreateMatrix(), isTransparent, false) { }
/// <summary> /// Creates a TileRendererLayer. </summary> /// <param name="tileCache"> cache where tiles are stored </param> /// <param name="mapDataStore"> the mapsforge map file </param> /// <param name="mapViewPosition"> the mapViewPosition to know which tiles to render </param> /// <param name="isTransparent"> true if the tile should have an alpha/transparency </param> /// <param name="renderLabels"> true if labels should be rendered onto tiles </param> /// <param name="graphicFactory"> the graphicFactory to carry out platform specific operations </param> public TileRendererLayer(TileCache tileCache, MapDataStore mapDataStore, MapViewPosition mapViewPosition, bool isTransparent, bool renderLabels, IGraphicFactory graphicFactory) : base(tileCache, mapViewPosition, graphicFactory.CreateMatrix(), isTransparent) { this.graphicFactory = graphicFactory; this.mapDataStore = mapDataStore; if (renderLabels) { this.tileBasedLabelStore = null; this.databaseRenderer = new DatabaseRenderer(this.mapDataStore, graphicFactory, tileCache); } else { this.tileBasedLabelStore = new TileBasedLabelStore(tileCache.CapacityFirstLevel); this.databaseRenderer = new DatabaseRenderer(this.mapDataStore, graphicFactory, tileBasedLabelStore); } this.textScale = 1; }
public LabelLayer(IGraphicFactory graphicFactory, LabelStore labelStore) { this.labelStore = labelStore; this.matrix = graphicFactory.CreateMatrix(); }
public TileDownloadLayer(TileCache tileCache, MapViewPosition mapViewPosition, TileSource tileSource, IGraphicFactory graphicFactory) : base(tileCache, mapViewPosition, graphicFactory.CreateMatrix(), tileSource.HasAlpha()) { this.tileCache = tileCache; this.tileSource = tileSource; this.cacheTimeToLive = tileSource.DefaultTimeToLive; this.graphicFactory = graphicFactory; }
internal CanvasRasterer(IGraphicFactory graphicFactory) { this.canvas = graphicFactory.CreateCanvas(); this.symbolMatrix = graphicFactory.CreateMatrix(); this.path = graphicFactory.CreatePath(); }