alaCarte Maps
Renderer for OpenStreetMap tiles
apply_selector.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef APPLY_SELECTOR_HPP
23 #define APPLY_SELECTOR_HPP
24 /*
25  * =====================================================================================
26  *
27  * Filename: apply_selector.hpp
28  *
29  * Description: last segment in the row of selectors which applies its style to all GeoObjects reaching it
30  *
31  * =====================================================================================
32  */
33 
34 #include "settings.hpp"
35 
37 
38 class ApplySelector : public Selector {
39 public:
40  ApplySelector(const shared_ptr<Rule>& rule);
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 
48 #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...
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const weak_ptr< Rule > rule
Definition: selector.hpp:53
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
ApplySelector(const shared_ptr< Rule > &rule)
This file is part of alaCarte.