alaCarte Maps
Renderer for OpenStreetMap tiles
line_selector.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef LINE_SELECTOR_HPP
23 #define LINE_SELECTOR_HPP
24 /*
25  * =====================================================================================
26  *
27  * Filename: line_selector.hpp
28  *
29  * Description: "line" - starting selector selecting only ways with area=no
30  * or where the start node is not the end node
31  *
32  * =====================================================================================
33  */
34 
35 /*
36 Line
37 offen und area ungesetzt: - Ja
38 geschlossen und area ungesetzt: - Nein
39 offen und area = yes: - Ja (Fallback wenn invalide Daten da sind)
40 geschlossen und area = yes: - Nein
41 offen und area = no: - Ja
42 geschlossen und area = no: - Ja
43 */
44 
45 #include "settings.hpp"
46 
48 
49 class LineSelector : public Selector {
50 public:
51  LineSelector(const shared_ptr<Rule>& rule, const shared_ptr<Selector>& next);
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...
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const weak_ptr< Rule > rule
Definition: selector.hpp:53
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
LineSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next)
This file is part of alaCarte.