alaCarte Maps
Renderer for OpenStreetMap tiles
|
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon. More...
#include <style.hpp>
Public Types | |
enum | TextPosition { POSITION_LINE = 0, POSITION_CENTER, POSITION_NULL } |
enum | LineCap { CAP_NONE = 0, CAP_ROUND, CAP_SQUARE } |
enum | LineJoin { JOIN_MITER = 0, JOIN_BEVEL, JOIN_ROUND } |
enum | ShieldShape { ROUNDED = 0, RECTANGULAR } |
enum | FontWeight { WEIGHT_NORMAL = 0, WEIGHT_BOLD } |
enum | FontStyle { STYLE_NORMAL = 0, STYLE_ITALIC } |
Public Member Functions | |
TESTABLE void | overmerge (GeoObject *obj, const shared_ptr< StyleTemplate > &style) |
Takes all non-"null" (meaning only properties that were explicitely set) properties from the given StyleTemplate and uses them to overwrite the properties of this Style. More... | |
void | finish (GeoObject *associatedObject, shared_ptr< const Stylesheet > stylesheet) |
Performs finishing operations on the style, like resolve tags for texts or check for icon path existence. More... | |
Style () | |
Public Attributes | |
Color | color |
Color | fill_color |
MaybeCachedString | image |
MaybeCachedString | fill_image |
float | width |
float | casing_width |
Color | casing_color |
MaybeCachedString | text |
TextPosition | text_position |
Color | text_color |
float | text_offset |
float | font_size |
MaybeCachedString | font_family |
FontWeight | font_weight |
FontStyle | font_style |
Color | text_halo_color |
float | text_halo_radius |
LineCap | linecap |
LineJoin | linejoin |
LineCap | casing_linecap |
LineJoin | casing_linejoin |
MaybeCachedString | icon_image |
float | icon_width |
float | icon_height |
float | icon_opacity |
Color | shield_color |
float | shield_opacity |
Color | shield_frame_color |
float | shield_frame_width |
Color | shield_casing_color |
float | shield_casing_width |
MaybeCachedString | shield_text |
MaybeCachedString | shield_image |
ShieldShape | shield_shape |
std::vector< double > | dashes |
std::vector< double > | casing_dashes |
int | z_index |
enum Style::FontStyle |
enum Style::FontWeight |
enum Style::LineCap |
enum Style::LineJoin |
enum Style::ShieldShape |
enum Style::TextPosition |
void Style::finish | ( | GeoObject * | associatedObject, |
shared_ptr< const Stylesheet > | stylesheet | ||
) |
void Style::overmerge | ( | GeoObject * | obj, |
const shared_ptr< StyleTemplate > & | style | ||
) |
Takes all non-"null" (meaning only properties that were explicitely set) properties from the given StyleTemplate and uses them to overwrite the properties of this Style.
style | the StyleTemplate to take all non-"null" properties from |
MaybeCachedString Style::fill_image |
MaybeCachedString Style::font_family |
FontWeight Style::font_weight |
MaybeCachedString Style::icon_image |
MaybeCachedString Style::image |
MaybeCachedString Style::shield_image |
ShieldShape Style::shield_shape |
MaybeCachedString Style::shield_text |
MaybeCachedString Style::text |
TextPosition Style::text_position |