37 , accepableType(Accept_Any)
41 void Rule::match(
const shared_ptr<std::vector<NodeId> >& nodeIDs,
42 const shared_ptr<std::vector<WayId> >& wayIDs,
43 const shared_ptr<std::vector<RelId> >& relIDs,
44 const shared_ptr<TileIdentifier>& ti,
47 if(zoombottom <= ti->getZoom() && ti->getZoom() <=
zoomtop)
50 for (
NodeId nodeID : *nodeIDs) {
51 first->matchNode(nodeID, ti, renderAttributes);
56 for (
WayId wayID : *wayIDs) {
57 first->matchWay(wayID, ti, renderAttributes);
62 for (
RelId relID : *relIDs) {
63 first->matchRelation(relID, ti, renderAttributes);
TESTABLE void match(const shared_ptr< std::vector< NodeId > > &nodeIDs, const shared_ptr< std::vector< WayId > > &wayIDs, const shared_ptr< std::vector< RelId > > &relIDs, const shared_ptr< TileIdentifier > &ti, RenderAttributes *renderAttributes) const
AcceptableTypes accepableType
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
TESTABLE const shared_ptr< StyleTemplate > & getStyleTemplate() const
shared_ptr< StyleTemplate > styleTemplate
TESTABLE void setFirstSelector(const shared_ptr< Selector > &first)
what is the first selector in the selector chain for this rule?
TESTABLE const shared_ptr< Geodata > & getGeodata() const
TESTABLE void setZoomBounds(int bottom, int top)
from which to which zoom level does this rule apply?
TESTABLE void setAcceptableType(AcceptableTypes type)
what types of GeoObjects does this rule accept in the first selector?
shared_ptr< Selector > first
TESTABLE void setStyleTemplate(const shared_ptr< StyleTemplate > &styleTemplate)
sets the StyleTemplate representation of the attributes specified in the MapCSS file for this rule...
const shared_ptr< Geodata > geodata
Rule(const shared_ptr< Geodata > &geodata)
This file is part of alaCarte.