alaCarte Maps
Renderer for OpenStreetMap tiles
area_selector.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef AREA_SELECTOR_HPP
23 #define AREA_SELECTOR_HPP
24 /*
25  * =====================================================================================
26  *
27  * Filename: area_selector.hpp
28  *
29  * Description: "area" - starting selector selecting only ways with area=yes
30  * or where the start node is the same as the end node
31  *
32  * =====================================================================================
33  */
34 
35 /*
36 offen und area ungesetzt: - Nein
37 geschlossen und area ungesetzt: - Ja
38 offen und area = yes: - Nein (invalide Daten)
39 geschlossen und area = yes: - Ja
40 offen und area = no: - Nein
41 geschlossen und area = no: - Nein
42 */
43 
44 #include "settings.hpp"
45 
47 
48 class AreaSelector : public Selector {
49 public:
50  AreaSelector(const shared_ptr<Rule>& rule, const shared_ptr<Selector>& next);
51 
52  virtual void matchNode(NodeId nodeID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
53  virtual void matchWay(WayId wayID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
54  virtual void matchRelation(RelId relID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
55 
56 };
57 
58 #endif
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
AreaSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next)
This file is part of alaCarte.
const weak_ptr< Rule > rule
Definition: selector.hpp:53
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const shared_ptr< Selector > next
Definition: selector.hpp:54
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const