alaCarte Maps
Renderer for OpenStreetMap tiles
colorTable.cpp
Go to the documentation of this file.
1 
23 #include "utils/colorTable.hpp"
24 
25 
26 
27 
28 
29 
30 
33 {
34  table["maroon"] = uint32(0xFF800000);
35  table["darkred"] = uint32(0xFF8B0000);
36  table["red"] = uint32(0xFFFF0000);
37  table["lightpink"] = uint32(0xFFFFB6C1);
38  table["crimson"] = uint32(0xFFDC143C);
39 
40  table["palevioletred"] = uint32(0xFFDB7093);
41  table["hotpink"] = uint32(0xFFFF69B4);
42  table["deeppink"] = uint32(0xFFFF1493);
43  table["mediumvioletred"] = uint32(0xFFC71585);
44  table["purple"] = uint32(0xFF800080);
45 
46  table["darkmagenta"] = uint32(0xFF8B008B);
47  table["orchid"] = uint32(0xFFDA70D6);
48  table["thistle"] = uint32(0xFFD8BFD8);
49  table["plum"] = uint32(0xFFDDA0DD);
50  table["violet"] = uint32(0xFFEE82EE);
51 
52  table["fuchsia"] = uint32(0xFFFF00FF);
53  table["magenta"] = uint32(0xFFFF00FF);
54  table["mediumorchid"] = uint32(0xFFBA55D3);
55  table["darkviolet"] = uint32(0xFF9400D3);
56  table["darkorchid"] = uint32(0xFF9932CC);
57 
58  table["blueviolet"] = uint32(0xFF8A2BE2);
59  table["indigo"] = uint32(0xFF4B0082);
60  table["mediumpurple"] = uint32(0xFF9370DB);
61  table["slateblue"] = uint32(0xFF6A5ACD);
62  table["mediumslateblue"] = uint32(0xFF7B68EE);
63 
64  table["darkblue"] = uint32(0xFF00008B);
65  table["mediumblue"] = uint32(0xFF0000CD);
66  table["blue"] = uint32(0xFF0000FF);
67  table["navy"] = uint32(0xFF000080);
68  table["midnightblue"] = uint32(0xFF191970);
69 
70  table["darkslateblue"] = uint32(0xFF483D8B);
71  table["royalblue"] = uint32(0xFF4169E1);
72  table["cornflowerblue"] = uint32(0xFF6495ED);
73  table["lightsteelblue"] = uint32(0xFFB0C4DE);
74  table["aliceblue"] = uint32(0xFFF0F8FF);
75 
76  table["ghostwhite"] = uint32(0xFFF8F8FF);
77  table["lavender"] = uint32(0xFFE6E6FA);
78  table["dodgerblue"] = uint32(0xFF1E90FF);
79  table["steelblue"] = uint32(0xFF4682B4);
80  table["deepskyblue"] = uint32(0xFF00BFFF);
81 
82  table["slategray"] = uint32(0xFF708090);
83  table["lightslategray"] = uint32(0xFF778899);
84  table["lightskyblue"] = uint32(0xFF87CEFA);
85  table["skyblue"] = uint32(0xFF87CEEB);
86  table["lightblue"] = uint32(0xFFADD8E6);
87 
88  table["teal"] = uint32(0xFF008080);
89  table["darkcyan"] = uint32(0xFF008B8B);
90  table["darkturquoise"] = uint32(0xFF00CED1);
91  table["aqua"] = uint32(0xFF00FFFF);
92  table["mediumturquoise"] = uint32(0xFF48D1CC);
93 
94  table["cadetblue"] = uint32(0xFF5F9EA0);
95  table["paleturquoise"] = uint32(0xFFAFEEEE);
96  table["lightcyan"] = uint32(0xFFE0FFFF);
97  table["azure"] = uint32(0xFFF0FFFF);
98  table["lightseagreen"] = uint32(0xFF20B2AA);
99 
100  table["turquoise"] = uint32(0xFF40E0D0);
101  table["powderblue"] = uint32(0xFFB0E0E6);
102  table["darkslategray"] = uint32(0xFF2F4F4F);
103  table["aquamarine"] = uint32(0xFF7FFFD4);
104  table["mediumspringgreen"] = uint32(0xFF00FA9A);
105 
106  table["mediumaquamarine"] = uint32(0xFF66CDAA);
107  table["springgreen"] = uint32(0xFF00FF7F);
108  table["mediumseagreen"] = uint32(0xFF3CB371);
109  table["seagreen"] = uint32(0xFF2E8B57);
110  table["limegreen"] = uint32(0xFF32CD32);
111 
112  table["darkgreen"] = uint32(0xFF006400);
113  table["green"] = uint32(0xFF008000);
114  table["lime"] = uint32(0xFF00FF00);
115  table["forestgreen"] = uint32(0xFF228B22);
116  table["darkseagreen"] = uint32(0xFF8FBC8F);
117 
118  table["lightgreen"] = uint32(0xFF90EE90);
119  table["palegreen"] = uint32(0xFF98FB98);
120  table["mintcream"] = uint32(0xFFF5FFFA);
121  table["honeydew"] = uint32(0xFFF0FFF0);
122  table["chartreuse"] = uint32(0xFF7FFF00);
123 
124  table["lawngreen"] = uint32(0xFF7CFC00);
125  table["olivedrab"] = uint32(0xFF6B8E23);
126  table["darkolivegreen"] = uint32(0xFF556B2F);
127  table["yellowgreen"] = uint32(0xFF9ACD32);
128  table["greenyellow"] = uint32(0xFFADFF2F);
129 
130  table["beige"] = uint32(0xFFF5F5DC);
131  table["linen"] = uint32(0xFFFAF0E6);
132  table["lightgoldenrodyellow"] = uint32(0xFFFAFAD2);
133  table["olive"] = uint32(0xFF808000);
134  table["yellow"] = uint32(0xFFFFFF00);
135 
136  table["lightyellow"] = uint32(0xFFFFFFE0);
137  table["ivory"] = uint32(0xFFFFFFF0);
138  table["darkkhaki"] = uint32(0xFFBDB76B);
139  table["khaki"] = uint32(0xFFF0E68C);
140  table["palegoldenrod"] = uint32(0xFFEEE8AA);
141 
142  table["wheat"] = uint32(0xFFF5DEB3);
143  table["gold"] = uint32(0xFFFFD700);
144  table["lemonchiffon"] = uint32(0xFFFFFACD);
145  table["papayawhip"] = uint32(0xFFFFEFD5);
146  table["darkgoldenrod"] = uint32(0xFFB8860B);
147 
148  table["goldenrod"] = uint32(0xFFDAA520);
149  table["antiquewhite"] = uint32(0xFFFAEBD7);
150  table["cornsilk"] = uint32(0xFFFFF8DC);
151  table["oldlace"] = uint32(0xFFFDF5E6);
152  table["moccasin"] = uint32(0xFFFFE4B5);
153 
154  table["navajowhite"] = uint32(0xFFFFDEAD);
155  table["orange"] = uint32(0xFFFFA500);
156  table["bisque"] = uint32(0xFFFFE4C4);
157  table["tan"] = uint32(0xFFD2B48C);
158  table["darkorange"] = uint32(0xFFFF8C00);
159 
160  table["burlywood"] = uint32(0xFFDEB887);
161  table["saddlebrown"] = uint32(0xFF8B4513);
162  table["sandybrown"] = uint32(0xFFF4A460);
163  table["blanchedalmond"] = uint32(0xFFFFEBCD);
164  table["lavenderblush"] = uint32(0xFFFFF0F5);
165 
166  table["seashell"] = uint32(0xFFFFF5EE);
167  table["floralwhite"] = uint32(0xFFFFFAF0);
168  table["snow"] = uint32(0xFFFFFAFA);
169  table["peru"] = uint32(0xFFCD853F);
170  table["peachpuff"] = uint32(0xFFFFDAB9);
171 
172  table["chocolate"] = uint32(0xFFD2691E);
173  table["sienna"] = uint32(0xFFA0522D);
174  table["lightsalmon"] = uint32(0xFFFFA07A);
175  table["coral"] = uint32(0xFFFF7F50);
176  table["darksalmon"] = uint32(0xFFE9967A);
177 
178  table["mistyrose"] = uint32(0xFFFFE4E1);
179  table["orangered"] = uint32(0xFFFF4500);
180  table["salmon"] = uint32(0xFFFA8072);
181  table["tomato"] = uint32(0xFFFF6347);
182  table["rosybrown"] = uint32(0xFFBC8F8F);
183 
184  table["pink"] = uint32(0xFFFFC0CB);
185  table["indianred"] = uint32(0xFFCD5C5C);
186  table["lightcoral"] = uint32(0xFFF08080);
187  table["brown"] = uint32(0xFFA52A2A);
188  table["firebrick"] = uint32(0xFFB22222);
189 
190  table["black"] = uint32(0xFF000000);
191  table["dimgray"] = uint32(0xFF696969);
192  table["gray"] = uint32(0xFF808080);
193  table["darkgray"] = uint32(0xFFA9A9A9);
194  table["silver"] = uint32(0xFFC0C0C0);
195 
196  table["lightgrey"] = uint32(0xFFD3D3D3);
197  table["gainsboro"] = uint32(0xFFDCDCDC);
198  table["whitesmoke"] = uint32(0xFFF5F5F5);
199  table["white"] = uint32(0xFFFFFFFF);
200 }
201 
210 {
211  static ColorTable inst;
212  return inst;
213 }
214 
215 
221 void ColorTable::resolve(const string& name, Color* target) const
222 {
223  assert(target);
224  auto it = table.find(name);
225 
226  if(it != table.end())
227  {
228  *target = it->second;
229  }
230 }
231 
237 const boost::unordered_map<string, Color>& ColorTable::getTable() const
238 {
239  return table;
240 }
void resolve(const string &name, Color *target) const
Operator to access the color table.
Definition: colorTable.cpp:221
std::uint32_t uint32
Definition: settings.hpp:116
Definition: color.hpp:40
const boost::unordered_map< string, Color > & getTable() const
Returns the hole table.
Definition: colorTable.cpp:237
ColorTable()
This file is part of alaCarte.
Definition: colorTable.cpp:32
static const ColorTable & Inst()
Returns a instance of a color table.
Definition: colorTable.cpp:209
boost::unordered_map< string, Color > table
Value of the table.
Definition: colorTable.hpp:45
Simple table for name to color mappings.
Definition: colorTable.hpp:32