alaCarte Maps
Renderer for OpenStreetMap tiles
childnodes_selector.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef CHILDNODES_SELECTOR_HPP
23 #define CHILDNODES_SELECTOR_HPP
24 /*
25  * =====================================================================================
26  *
27  * Filename: node_selector.hpp
28  *
29  * Description: "node" - selector for all child nodes of the parent way or relation
30  *
31  * =====================================================================================
32  */
33 
34 #include "settings.hpp"
35 
37 
38 class ChildNodesSelector : public Selector {
39 public:
40  ChildNodesSelector(const shared_ptr<Rule>& rule, const shared_ptr<Selector>& next);
41 
42  virtual void matchNode(NodeId nodeID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
43  virtual void matchWay(WayId wayID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
44  virtual void matchRelation(RelId relID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
45 };
46 
47 #endif
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
const weak_ptr< Rule > rule
Definition: selector.hpp:53
const shared_ptr< Selector > next
Definition: selector.hpp:54
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
ChildNodesSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next)
This file is part of alaCarte.
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const