private void RenderWaterBackground(RenderContext renderContext) { renderContext.DrawingLayers = (sbyte)0; Point[] coordinates = GetTilePixelCoordinates(renderContext.rendererJob.tile.TileSize); PolylineContainer way = new PolylineContainer(coordinates, renderContext.rendererJob.tile, new List <Tag>() { TAG_NATURAL_WATER }); renderContext.renderTheme.MatchClosedWay(this, renderContext, way); }
private void RenderWay(RenderContext renderContext, PolylineContainer way) { renderContext.DrawingLayers = way.Layer; if (way.ClosedWay) { renderContext.renderTheme.MatchClosedWay(this, renderContext, way); } else { renderContext.renderTheme.MatchLinearWay(this, renderContext, way); } }
private void DrawShapePaintContainer(ShapePaintContainer shapePaintContainer) { ShapeType shapeType = shapePaintContainer.shapeContainer.ShapeType; switch (shapeType) { case org.mapsforge.map.layer.renderer.ShapeType.CIRCLE: DrawCircleContainer(shapePaintContainer); return; case org.mapsforge.map.layer.renderer.ShapeType.POLYLINE: PolylineContainer polylineContainer = (PolylineContainer)shapePaintContainer.shapeContainer; DrawPath(shapePaintContainer, polylineContainer.CoordinatesRelativeToTile, shapePaintContainer.dy); return; } }
public void RenderWayText(RenderContext renderContext, Display display, int priority, string textKey, float dy, IPaint fill, IPaint stroke, PolylineContainer way) { WayDecorator.RenderText(way.Tile, textKey, display, priority, dy, fill, stroke, way.CoordinatesAbsolute, renderContext.labels); }
public void RenderWaySymbol(RenderContext renderContext, Display display, int priority, IBitmap symbol, float dy, bool alignCenter, bool repeat, float repeatGap, float repeatStart, bool rotate, PolylineContainer way) { WayDecorator.RenderSymbol(symbol, display, priority, dy, alignCenter, repeat, repeatGap, repeatStart, rotate, way.CoordinatesAbsolute, renderContext.labels); }
public void RenderWay(RenderContext renderContext, IPaint stroke, float dy, int level, PolylineContainer way) { renderContext.AddToCurrentDrawingLayer(level, new ShapePaintContainer(way, stroke, dy)); }
public void RenderAreaSymbol(RenderContext renderContext, Display display, int priority, IBitmap symbol, PolylineContainer way) { Point centerPosition = way.CenterAbsolute; renderContext.labels.Add(new SymbolContainer(centerPosition, display, priority, symbol)); }
public void RenderAreaCaption(RenderContext renderContext, Display display, int priority, string caption, float horizontalOffset, float verticalOffset, IPaint fill, IPaint stroke, Position position, int maxTextWidth, PolylineContainer way) { Point centerPoint = way.CenterAbsolute.Offset(horizontalOffset, verticalOffset); renderContext.labels.Add(this.graphicFactory.CreatePointTextContainer(centerPoint, display, priority, caption, fill, stroke, null, position, maxTextWidth)); }
public void RenderArea(RenderContext renderContext, IPaint fill, IPaint stroke, int level, PolylineContainer way) { renderContext.AddToCurrentDrawingLayer(level, new ShapePaintContainer(way, stroke)); renderContext.AddToCurrentDrawingLayer(level, new ShapePaintContainer(way, fill)); }