alaCarte Maps
Renderer for OpenStreetMap tiles
node_renderer.hpp
Go to the documentation of this file.
1 
21 #ifndef NODE_RENDERER_HPP
22 #define NODE_RENDERER_HPP
23 
24 #include "settings.hpp"
25 
26 #include <cairo.h>
27 
28 #include "object_renderer.hpp"
29 
30 class Node;
31 class Geodata;
32 class Style;
33 class AssetCache;
34 class Label;
35 
36 class NodeRenderer : public ObjectRenderer {
37 private:
40 
41 public:
42  NodeRenderer(const shared_ptr<Geodata>& data,
43  NodeId nid,
44  const Style* s,
45  const cairo_matrix_t* transform);
46 
47  void casing(cairo_t* cr);
48  void stroke(cairo_t* cr);
49  void label(cairo_t* cr,
50  std::list<shared_ptr<Label> >& labels, AssetCache& cache);
51  void shield(cairo_t* cr,
52  std::list<shared_ptr<Shield> >& shields, AssetCache& cache);
53  void icon(cairo_t* cr, AssetCache& cache);
54 };
55 
56 #endif
void icon(cairo_t *cr, AssetCache &cache)
void stroke(cairo_t *cr)
const cairo_matrix_t * transform
Definition: node.hpp:28
void label(cairo_t *cr, std::list< shared_ptr< Label > > &labels, AssetCache &cache)
const shared_ptr< Geodata > & data
NodeRenderer(const shared_ptr< Geodata > &data, NodeId nid, const Style *s, const cairo_matrix_t *transform)
This file is part of alaCarte.
void casing(cairo_t *cr)
Stores bounding box and style of a label that needs to be placed.
FloatPoint location
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon...
Definition: style.hpp:35
void shield(cairo_t *cr, std::list< shared_ptr< Shield > > &shields, AssetCache &cache)
const Style * s