alaCarte Maps
Renderer for OpenStreetMap tiles
style_template.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef STYLE_TEMPLATE_HPP
23 #define STYLE_TEMPLATE_HPP
24 
25 #include "settings.hpp"
26 
27 #include "style.hpp"
28 
29 namespace eval {
30  template<typename TargetType>
31  class Eval;
32 }
33 
34 class GeoObject;
35 class Stylesheet;
36 
43 {
44 public:
45  StyleTemplate();
46 
47 
48  shared_ptr< eval::Eval<Color> > color;
49  shared_ptr< eval::Eval<Color> > fill_color;
50 
51  shared_ptr< eval::Eval<MaybeCachedString> > image;
52  shared_ptr< eval::Eval<MaybeCachedString> > fill_image;
53 
54  shared_ptr< eval::Eval<float> > width;
55  shared_ptr< eval::Eval<float> > casing_width;
56  shared_ptr< eval::Eval<Color> > casing_color;
57 
58  shared_ptr< eval::Eval<MaybeCachedString> > text;
59  shared_ptr< eval::Eval<Style::TextPosition> > text_position;
60  shared_ptr< eval::Eval<Color> > text_color;
61  shared_ptr< eval::Eval<float> > text_offset;
62  shared_ptr< eval::Eval<float> > font_size;
63  shared_ptr< eval::Eval<MaybeCachedString> > font_family;
64  shared_ptr< eval::Eval<Style::FontWeight> > font_weight;
65  shared_ptr< eval::Eval<Style::FontStyle> > font_style;
66 
67  shared_ptr< eval::Eval<Color> > text_halo_color;
68  shared_ptr< eval::Eval<float> > text_halo_radius;
69 
70  shared_ptr< eval::Eval<MaybeCachedString> > icon_image;
71  shared_ptr< eval::Eval<float> > icon_width;
72  shared_ptr< eval::Eval<float> > icon_height;
73  shared_ptr< eval::Eval<float> > icon_opacity;
74 
75  shared_ptr< eval::Eval<Color> > shield_color;
76  shared_ptr< eval::Eval<float> > shield_opacity;
77  shared_ptr< eval::Eval<Color> > shield_frame_color;
78  shared_ptr< eval::Eval<float> > shield_frame_width;
79  shared_ptr< eval::Eval<Color> > shield_casing_color;
80  shared_ptr< eval::Eval<float> > shield_casing_width;
81 
82  shared_ptr< eval::Eval<MaybeCachedString> > shield_text;
83  shared_ptr< eval::Eval<MaybeCachedString> > shield_image;
84  shared_ptr< eval::Eval<Style::ShieldShape> > shield_shape;
85 
86  shared_ptr< eval::Eval<int> > z_index;
87 
88  shared_ptr< eval::Eval<Style::LineCap> > linecap;
89  shared_ptr< eval::Eval<Style::LineJoin> > linejoin;
90  shared_ptr< eval::Eval<Style::LineCap> > casing_linecap;
91  shared_ptr< eval::Eval<Style::LineJoin> > casing_linejoin;
92 
93  shared_ptr< eval::Eval<std::vector<double> > > dashes;
94  shared_ptr< eval::Eval<std::vector<double> > > casing_dashes;
95 
96 };
97 
98 #endif
shared_ptr< eval::Eval< float > > icon_opacity
shared_ptr< eval::Eval< Style::LineJoin > > linejoin
shared_ptr< eval::Eval< float > > shield_opacity
shared_ptr< eval::Eval< Color > > color
shared_ptr< eval::Eval< MaybeCachedString > > text
shared_ptr< eval::Eval< Style::FontWeight > > font_weight
A StyleTemplate is the "raw" / "unevaluated" form of a Style specified by a single MapCSS rule...
shared_ptr< eval::Eval< float > > casing_width
shared_ptr< eval::Eval< float > > text_halo_radius
shared_ptr< eval::Eval< Style::LineCap > > linecap
shared_ptr< eval::Eval< float > > font_size
shared_ptr< eval::Eval< float > > shield_frame_width
shared_ptr< eval::Eval< Style::LineJoin > > casing_linejoin
shared_ptr< eval::Eval< float > > shield_casing_width
shared_ptr< eval::Eval< Color > > shield_frame_color
A Stylesheet parses a given MapCSS Stylesheet file and stores the defined rules.
Definition: stylesheet.hpp:39
shared_ptr< eval::Eval< std::vector< double > > > dashes
shared_ptr< eval::Eval< Color > > text_color
shared_ptr< eval::Eval< Color > > casing_color
shared_ptr< eval::Eval< float > > width
shared_ptr< eval::Eval< MaybeCachedString > > shield_text
shared_ptr< eval::Eval< float > > icon_height
shared_ptr< eval::Eval< MaybeCachedString > > fill_image
This file is part of alaCarte.
shared_ptr< eval::Eval< MaybeCachedString > > image
shared_ptr< eval::Eval< int > > z_index
shared_ptr< eval::Eval< MaybeCachedString > > font_family
shared_ptr< eval::Eval< Style::ShieldShape > > shield_shape
shared_ptr< eval::Eval< Color > > shield_casing_color
shared_ptr< eval::Eval< Style::FontStyle > > font_style
shared_ptr< eval::Eval< MaybeCachedString > > icon_image
shared_ptr< eval::Eval< Color > > text_halo_color
shared_ptr< eval::Eval< float > > icon_width
shared_ptr< eval::Eval< float > > text_offset
shared_ptr< eval::Eval< MaybeCachedString > > shield_image
shared_ptr< eval::Eval< Color > > shield_color
shared_ptr< eval::Eval< Color > > fill_color
shared_ptr< eval::Eval< Style::TextPosition > > text_position
shared_ptr< eval::Eval< std::vector< double > > > casing_dashes
shared_ptr< eval::Eval< Style::LineCap > > casing_linecap