alaCarte Maps
Renderer for OpenStreetMap tiles
RenderCanvasFactory Class Reference

#include <render_canvas.hpp>

Public Member Functions

 RenderCanvasFactory ()
 
shared_ptr< RenderCanvasgetCanvas (TileIdentifier::Format type)
 Returns an empty shared_ptr if format is not supported. More...
 

Private Attributes

shared_ptr< RenderCanvassvgCanvas
 
shared_ptr< RenderCanvaspngCanvas
 

Detailed Description

Definition at line 88 of file render_canvas.hpp.

Constructor & Destructor Documentation

RenderCanvasFactory::RenderCanvasFactory ( )
Parameters
numCavasNumber of canvas objects to allocate per type.

Definition at line 98 of file render_canvas.cpp.

Member Function Documentation

shared_ptr<RenderCanvas> RenderCanvasFactory::getCanvas ( TileIdentifier::Format  type)
inline

Returns an empty shared_ptr if format is not supported.

Definition at line 96 of file render_canvas.hpp.

Member Data Documentation

shared_ptr<RenderCanvas> RenderCanvasFactory::pngCanvas
private

Definition at line 116 of file render_canvas.hpp.

shared_ptr<RenderCanvas> RenderCanvasFactory::svgCanvas
private

Definition at line 115 of file render_canvas.hpp.


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