![]() |
alaCarte Maps
Renderer for OpenStreetMap tiles
|
Abstract Class which computes Tiles by a given TileIdentifier. More...
#include <job.hpp>
Public Member Functions | |
| Job (const shared_ptr< MetaIdentifier > &mid, const shared_ptr< Configuration > &config, const shared_ptr< RequestManager > &manager, const shared_ptr< RenderCanvas > &canvas) | |
| Creates a new Job and sets the RequestManager. More... | |
| void | process () |
| Computes a all tiles contained in the MetaIdentifier. More... | |
| void | deliver () |
| void | addRequest (const shared_ptr< HttpRequest > &req, const shared_ptr< TileIdentifier > &id) |
| bool | isEmpty () |
| const shared_ptr< MetaIdentifier > & | getIdentifier () |
Private Member Functions | |
| TESTABLE shared_ptr< Tile > | computeEmpty () |
| Computes an empty Tile. More... | |
| TESTABLE FixedRect | computeRect (const shared_ptr< TileIdentifier > &ti) |
| Computes an rectangle for the given TileIdentifier. More... | |
| TESTABLE FixedRect | computeRect (const shared_ptr< MetaIdentifier > &ti) |
| Computes an rectangle for the given MetaIdentifier. More... | |
| bool | initTiles () |
| Inits the internal list of tiles that are part of the MetaTile. More... | |
Private Attributes | |
| shared_ptr< RequestManager > | manager |
| RequestManager which holds all important components. More... | |
| shared_ptr< RenderCanvas > | canvas |
| supplied by worker thread More... | |
| shared_ptr< Configuration > | config |
| shared_ptr< MetaIdentifier > | mid |
| bool | empty |
| bool | cached |
| std::vector< shared_ptr< Tile > > | tiles |
| initialized by initTiles More... | |
| boost::unordered_map< TileIdentifier, std::list< shared_ptr< HttpRequest > > > | requests |
| shared_ptr< Statistic::JobMeasurement > | measurement |
| used to generate statistics More... | |
Abstract Class which computes Tiles by a given TileIdentifier.
| Job::Job | ( | const shared_ptr< MetaIdentifier > & | mid, |
| const shared_ptr< Configuration > & | config, | ||
| const shared_ptr< RequestManager > & | manager, | ||
| const shared_ptr< RenderCanvas > & | canvas | ||
| ) |
Creates a new Job and sets the RequestManager.
| config | The Configuration, e.g. for the prerender_level. |
| manager | The RequestManager which holds all important components. |
|
inline |
|
private |
|
private |
Computes an rectangle for the given TileIdentifier.
| ti | The TileIdentifier. |
|
private |
Computes an rectangle for the given MetaIdentifier.
| ti | The MetaIdentifier. |
|
inline |
|
private |
| void Job::process | ( | ) |
Computes a all tiles contained in the MetaIdentifier.
|
private |
|
private |
|
private |
RequestManager which holds all important components.
|
private |
|
private |
|
private |
|
private |