alaCarte Maps
Renderer for OpenStreetMap tiles
|
#include <object_renderer.hpp>
Public Member Functions | |
ObjectRenderer (const shared_ptr< Geodata > &data, const Style *s, const cairo_matrix_t *transform) | |
Protected Member Functions | |
void | paintLine (cairo_t *cr, const std::vector< NodeId > &nodeIDs, bool reverse=false, bool connect=false) const |
This file is part of alaCarte. More... | |
void | addShield (std::list< shared_ptr< Shield > > &shields, const FloatPoint &p, const cairo_text_extents_t *textSize) const |
used by node and way renderer to place a shield. More... | |
void | addLabel (std::list< shared_ptr< Label > > &labels, const FloatPoint &p, const cairo_text_extents_t *textSize) const |
used by node and way renderer to place a shield. More... | |
Protected Attributes | |
const shared_ptr< Geodata > & | data |
const cairo_matrix_t * | transform |
const Style * | s |
FloatRect | bounds |
is set by addWayPath for ways or in transformLocation for nodes More... | |
Definition at line 40 of file object_renderer.hpp.
ObjectRenderer::ObjectRenderer | ( | const shared_ptr< Geodata > & | data, |
const Style * | s, | ||
const cairo_matrix_t * | transform | ||
) |
Definition at line 109 of file object_renderer.cpp.
|
protected |
used by node and way renderer to place a shield.
p | point at the center of the shield |
Definition at line 97 of file object_renderer.cpp.
|
protected |
used by node and way renderer to place a shield.
p | point at the center of the shield |
Definition at line 75 of file object_renderer.cpp.
|
protected |
This file is part of alaCarte.
alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.
Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter0 Maintainer: Patrick Niklaus Adds the path of the given way to current path, if path is not set it creates it form the data
reverse | paint the path in reverse order (used by relations) |
connect | to the last current point on the context (set by relations) |
Definition at line 40 of file object_renderer.cpp.
|
protected |
is set by addWayPath for ways or in transformLocation for nodes
Definition at line 47 of file object_renderer.hpp.
|
protected |
Definition at line 43 of file object_renderer.hpp.
|
protected |
Definition at line 45 of file object_renderer.hpp.
|
protected |
Definition at line 44 of file object_renderer.hpp.