alaCarte Maps
Renderer for OpenStreetMap tiles
relation_renderer.hpp
Go to the documentation of this file.
1 
21 #ifndef RELATION_RENDERER_HPP
22 #define RELATION_RENDERER_HPP
23 /*
24  * =====================================================================================
25  *
26  * Filename: relation_renderer.hpp
27  *
28  * Description: Wrapper for way rendering operations.
29  *
30  * =====================================================================================
31  */
32 #include "settings.hpp"
33 
34 #include <cairo.h>
35 
36 #include "object_renderer.hpp"
37 
38 class Geodata;
39 class Node;
40 class Way;
41 class Style;
42 class Label;
43 class AssetCache;
44 
46 {
47 private:
49  void addRingPath(cairo_t* cr, const std::vector<WayId>& ids, int& idx, bool* used);
50 
51 public:
52  RelationRenderer(const shared_ptr<Geodata>& data,
53  RelId rid,
54  const Style* s,
55  const cairo_matrix_t* transform);
56 
57  void fill(cairo_t* cr, AssetCache& cache);
58 };
59 
60 #endif
void fill(cairo_t *cr, AssetCache &cache)
const cairo_matrix_t * transform
Definition: node.hpp:28
const shared_ptr< Geodata > & data
Stores bounding box and style of a label that needs to be placed.
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon...
Definition: style.hpp:35
void addRingPath(cairo_t *cr, const std::vector< WayId > &ids, int &idx, bool *used)
tries to paint a ring starting at ids[idx].
RelationRenderer(const shared_ptr< Geodata > &data, RelId rid, const Style *s, const cairo_matrix_t *transform)
This file is part of alaCarte.
Definition: way.hpp:31
const Style * s