alaCarte Maps
Renderer for OpenStreetMap tiles
|
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how the Node or Way has to be rendered. More...
#include <render_attributes.hpp>
Public Member Functions | |
TESTABLE const boost::unordered_map< WayId, Style * > & | getWayMap () const |
TESTABLE const boost::unordered_map< NodeId, Style * > & | getNodeMap () const |
TESTABLE const boost::unordered_map< RelId, Style * > & | getRelationMap () const |
TESTABLE Style * | getCanvasStyle () |
TESTABLE Style * | getNewStyle (NodeId id) |
TESTABLE Style * | getNewStyle (WayId id) |
TESTABLE Style * | getNewStyle (RelId id) |
Static Public Attributes | |
static const unsigned int | ChunkSize = 1024 |
Private Member Functions | |
template<typename IdType > | |
Style * | newStyle (IdType id, boost::unordered_map< IdType, Style * > &map) |
Private Attributes | |
boost::unordered_map< NodeId, Style * > | nodeStyles |
boost::unordered_map< WayId, Style * > | wayStyles |
boost::unordered_map< RelId, Style * > | relationStyles |
boost::object_pool< Style > | stylePool |
Style | canvasStyle |
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how the Node or Way has to be rendered.
The exception of the rule that only nodes and ways are rendered are relations of type multipolygon, therefore we still need a relationStyles map.
Definition at line 36 of file render_attributes.hpp.
Definition at line 53 of file render_attributes.hpp.
Definition at line 58 of file render_attributes.hpp.
Definition at line 59 of file render_attributes.hpp.
Definition at line 60 of file render_attributes.hpp.
Definition at line 45 of file render_attributes.hpp.
|
inline |
Definition at line 49 of file render_attributes.hpp.
Definition at line 41 of file render_attributes.hpp.
|
inlineprivate |
Definition at line 64 of file render_attributes.hpp.
|
private |
Definition at line 77 of file render_attributes.hpp.
|
static |
Definition at line 39 of file render_attributes.hpp.
Definition at line 71 of file render_attributes.hpp.
Definition at line 73 of file render_attributes.hpp.
|
private |
Definition at line 75 of file render_attributes.hpp.
Definition at line 72 of file render_attributes.hpp.