alaCarte Maps
Renderer for OpenStreetMap tiles
RenderCanvas Class Referenceabstract

#include <render_canvas.hpp>

Inheritance diagram for RenderCanvas:
PNGRenderCanvas SVGRenderCanvas

Public Types

enum  {
  LAYER_FILL = 0, LAYER_CASING, LAYER_STROKE, LAYER_ICONS,
  LAYER_LABELS, LAYER_NUM
}
 Layers contained in a canvas, used as index for CairoLayer vector. More...
 

Public Member Functions

virtual ~RenderCanvas ()=default
 
virtual void clear ()=0
 Clears every layer. Should always be called before use. More...
 
virtual CairoLayergetImageLayers ()=0
 Layers to paint the MetaTile onto. More...
 
virtual CairoLayergetSliceLayer ()=0
 Get layer that is the size of a final tile for slicing. More...
 
virtual Tile::ImageType copySliceImage ()=0
 Returns the rendered slice. More...
 

Detailed Description

Definition at line 63 of file render_canvas.hpp.

Member Enumeration Documentation

anonymous enum

Layers contained in a canvas, used as index for CairoLayer vector.

Enumerator
LAYER_FILL 
LAYER_CASING 
LAYER_STROKE 
LAYER_ICONS 
LAYER_LABELS 
LAYER_NUM 

Definition at line 67 of file render_canvas.hpp.

Constructor & Destructor Documentation

virtual RenderCanvas::~RenderCanvas ( )
virtualdefault

Member Function Documentation

virtual void RenderCanvas::clear ( )
pure virtual

Clears every layer. Should always be called before use.

Implemented in SVGRenderCanvas, and PNGRenderCanvas.

virtual Tile::ImageType RenderCanvas::copySliceImage ( )
pure virtual

Returns the rendered slice.

Implemented in SVGRenderCanvas, and PNGRenderCanvas.

virtual CairoLayer* RenderCanvas::getImageLayers ( )
pure virtual

Layers to paint the MetaTile onto.

Implemented in SVGRenderCanvas, and PNGRenderCanvas.

virtual CairoLayer& RenderCanvas::getSliceLayer ( )
pure virtual

Get layer that is the size of a final tile for slicing.

Implemented in SVGRenderCanvas, and PNGRenderCanvas.


The documentation for this class was generated from the following file: