alaCarte Maps
Renderer for OpenStreetMap tiles
SVGRenderCanvas Class Reference
Inheritance diagram for SVGRenderCanvas:
RenderCanvas

Public Member Functions

 SVGRenderCanvas ()
 
 SVGRenderCanvas (unsigned int layerWidth, unsigned int layerHeight, unsigned int sliceWidth, unsigned int sliceHeight)
 
virtual void clear ()
 Clears every layer. Should always be called before use. More...
 
virtual CairoLayergetImageLayers ()
 Layers to paint the MetaTile onto. More...
 
virtual CairoLayergetSliceLayer ()
 Get layer that is the size of a final tile for slicing. More...
 
virtual Tile::ImageType copySliceImage ()
 Returns the rendered slice. More...
 
- Public Member Functions inherited from RenderCanvas
virtual ~RenderCanvas ()=default
 

Private Attributes

CairoLayer layers [LAYER_NUM]
 
CairoLayer slice
 
Tile::ImageType buffer
 

Additional Inherited Members

- Public Types inherited from RenderCanvas
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...
 

Detailed Description

Definition at line 69 of file render_canvas.cpp.

Constructor & Destructor Documentation

SVGRenderCanvas::SVGRenderCanvas ( )
inline

Definition at line 77 of file render_canvas.cpp.

SVGRenderCanvas::SVGRenderCanvas ( unsigned int  layerWidth,
unsigned int  layerHeight,
unsigned int  sliceWidth,
unsigned int  sliceHeight 
)

Definition at line 161 of file render_canvas.cpp.

Member Function Documentation

void SVGRenderCanvas::clear ( )
virtual

Clears every layer. Should always be called before use.

Implements RenderCanvas.

Definition at line 182 of file render_canvas.cpp.

Tile::ImageType SVGRenderCanvas::copySliceImage ( )
virtual

Returns the rendered slice.

Implements RenderCanvas.

Definition at line 191 of file render_canvas.cpp.

virtual CairoLayer* SVGRenderCanvas::getImageLayers ( )
inlinevirtual

Layers to paint the MetaTile onto.

Implements RenderCanvas.

Definition at line 89 of file render_canvas.cpp.

virtual CairoLayer& SVGRenderCanvas::getSliceLayer ( )
inlinevirtual

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

Implements RenderCanvas.

Definition at line 90 of file render_canvas.cpp.

Member Data Documentation

Tile::ImageType SVGRenderCanvas::buffer
private

Definition at line 74 of file render_canvas.cpp.

CairoLayer SVGRenderCanvas::layers[LAYER_NUM]
private

Definition at line 72 of file render_canvas.cpp.

CairoLayer SVGRenderCanvas::slice
private

Definition at line 73 of file render_canvas.cpp.


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