alaCarte Maps
Renderer for OpenStreetMap tiles
NodeRenderer Class Reference

#include <node_renderer.hpp>

Inheritance diagram for NodeRenderer:
ObjectRenderer

Public Member Functions

 NodeRenderer (const shared_ptr< Geodata > &data, NodeId nid, const Style *s, const cairo_matrix_t *transform)
 This file is part of alaCarte. More...
 
void casing (cairo_t *cr)
 
void stroke (cairo_t *cr)
 
void label (cairo_t *cr, std::list< shared_ptr< Label > > &labels, AssetCache &cache)
 
void shield (cairo_t *cr, std::list< shared_ptr< Shield > > &shields, AssetCache &cache)
 
void icon (cairo_t *cr, AssetCache &cache)
 
- Public Member Functions inherited from ObjectRenderer
 ObjectRenderer (const shared_ptr< Geodata > &data, const Style *s, const cairo_matrix_t *transform)
 

Private Attributes

FloatPoint location
 
Nodenode
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectRenderer
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 inherited from ObjectRenderer
const shared_ptr< Geodata > & data
 
const cairo_matrix_t * transform
 
const Styles
 
FloatRect bounds
 is set by addWayPath for ways or in transformLocation for nodes More...
 

Detailed Description

Definition at line 36 of file node_renderer.hpp.

Constructor & Destructor Documentation

NodeRenderer::NodeRenderer ( const shared_ptr< Geodata > &  data,
NodeId  nid,
const Style s,
const cairo_matrix_t *  transform 
)

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 Winter Maintainer: Patrick Niklaus

Definition at line 44 of file node_renderer.cpp.

Member Function Documentation

void NodeRenderer::casing ( cairo_t *  cr)

Definition at line 58 of file node_renderer.cpp.

void NodeRenderer::icon ( cairo_t *  cr,
AssetCache cache 
)

Definition at line 142 of file node_renderer.cpp.

void NodeRenderer::label ( cairo_t *  cr,
std::list< shared_ptr< Label > > &  labels,
AssetCache cache 
)

Definition at line 90 of file node_renderer.cpp.

void NodeRenderer::shield ( cairo_t *  cr,
std::list< shared_ptr< Shield > > &  shields,
AssetCache cache 
)

Definition at line 116 of file node_renderer.cpp.

void NodeRenderer::stroke ( cairo_t *  cr)

Definition at line 74 of file node_renderer.cpp.

Member Data Documentation

FloatPoint NodeRenderer::location
private

Definition at line 38 of file node_renderer.hpp.

Node* NodeRenderer::node
private

Definition at line 39 of file node_renderer.hpp.


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