alaCarte Maps
Renderer for OpenStreetMap tiles
|
#include <rule.hpp>
Public Types | |
enum | AcceptableTypes { Accept_Node = 0x1, Accept_Way = 0x2, Accept_Relation = 0x4, Accept_Any = Accept_Node | Accept_Way | Accept_Relation } |
Public Member Functions | |
Rule (const shared_ptr< Geodata > &geodata) | |
This file is part of alaCarte. More... | |
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 |
TESTABLE const shared_ptr< Geodata > & | getGeodata () const |
TESTABLE const shared_ptr< StyleTemplate > & | getStyleTemplate () const |
TESTABLE void | setStyleTemplate (const shared_ptr< StyleTemplate > &styleTemplate) |
sets the StyleTemplate representation of the attributes specified in the MapCSS file for this rule. More... | |
TESTABLE void | setFirstSelector (const shared_ptr< Selector > &first) |
what is the first selector in the selector chain for this rule? More... | |
TESTABLE void | setZoomBounds (int bottom, int top) |
from which to which zoom level does this rule apply? More... | |
TESTABLE void | setAcceptableType (AcceptableTypes type) |
what types of GeoObjects does this rule accept in the first selector? More... | |
Private Attributes | |
const shared_ptr< Geodata > | geodata |
shared_ptr< Selector > | first |
shared_ptr< StyleTemplate > | styleTemplate |
int | zoombottom |
int | zoomtop |
AcceptableTypes | accepableType |
Friends | |
struct | MapCssParser |
Rule::Rule | ( | const shared_ptr< Geodata > & | geodata | ) |
This file is part of alaCarte.
alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.
Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Florian Jacob
const shared_ptr< StyleTemplate > & Rule::getStyleTemplate | ( | ) | const |
void Rule::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 |
void Rule::setAcceptableType | ( | AcceptableTypes | type | ) |
void Rule::setFirstSelector | ( | const shared_ptr< Selector > & | first | ) |
void Rule::setStyleTemplate | ( | const shared_ptr< StyleTemplate > & | styleTemplate | ) |
sets the StyleTemplate representation of the attributes specified in the MapCSS file for this rule.
void Rule::setZoomBounds | ( | int | bottom, |
int | top | ||
) |
|
friend |
|
private |
|
private |