예제 #1
0
 public FrameBuffer(FrameBufferModel frameBufferModel, DisplayModel displayModel, IGraphicFactory graphicFactory)
 {
     this.frameBufferModel = frameBufferModel;
     this.displayModel     = displayModel;
     this.graphicFactory   = graphicFactory;
     this.matrix           = graphicFactory.CreateMatrix();
 }
예제 #2
0
 internal CanvasRasterer(IGraphicFactory graphicFactory)
 {
     this.symbolMatrix = graphicFactory.CreateMatrix();
     this.path         = graphicFactory.CreatePath();
     // TODO: Delete
     this.graphicFactory = graphicFactory;
 }
예제 #3
0
 public TileStoreLayer(TileCache tileCache, MapViewPosition mapViewPosition, IGraphicFactory graphicFactory, bool isTransparent) : base(tileCache, mapViewPosition, graphicFactory.CreateMatrix(), isTransparent, false)
 {
 }
예제 #4
0
 /// <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;
 }
예제 #5
0
 public LabelLayer(IGraphicFactory graphicFactory, LabelStore labelStore)
 {
     this.labelStore = labelStore;
     this.matrix     = graphicFactory.CreateMatrix();
 }
예제 #6
0
 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;
 }
예제 #7
0
 internal CanvasRasterer(IGraphicFactory graphicFactory)
 {
     this.canvas       = graphicFactory.CreateCanvas();
     this.symbolMatrix = graphicFactory.CreateMatrix();
     this.path         = graphicFactory.CreatePath();
 }