Render masts as pylons
[GPXSee.git] / src / map / ENC / style.cpp
blob86ec184bd986fcc4582a6e98015201993a19942a
1 #include <QPainter>
2 #include "style.h"
4 using namespace ENC;
6 static QImage railroad()
8 QImage img(16, 4, QImage::Format_ARGB32_Premultiplied);
9 img.fill(Qt::black);
10 QPainter p(&img);
11 p.setPen(QPen(Qt::white, 2));
12 p.drawLine(9, 2, 15, 2);
14 return img;
17 void Style::polygonStyle()
19 _polygons[TYPE(M_COVR)] = Polygon(QBrush("#ffffff"));
20 _polygons[TYPE(LNDARE)] = Polygon(QBrush("#e8e064"));
21 _polygons[TYPE(BUAARE)] = Polygon(QBrush("#d98b21"));
22 _polygons[TYPE(BUISGL)] = Polygon(QBrush("#d98b21"),
23 QPen(QColor("#966118"), 1.5));
24 _polygons[TYPE(BRIDGE)] = Polygon(QBrush("#a58140"));
25 _polygons[TYPE(I_BRIDGE)] = Polygon(QBrush("#a58140"));
26 _polygons[SUBTYPE(DEPARE, 0)] = Polygon(QBrush("#98c064"));
27 _polygons[SUBTYPE(DEPARE, 1)] = Polygon(QBrush("#a0a0ff"));
28 _polygons[SUBTYPE(DEPARE, 2)] = Polygon(QBrush("#b0b0ff"));
29 _polygons[SUBTYPE(DEPARE, 3)] = Polygon(QBrush("#c0c0ff"));
30 _polygons[SUBTYPE(DEPARE, 4)] = Polygon(QBrush("#c0d0ff"));
31 _polygons[SUBTYPE(DEPARE, 5)] = Polygon(QBrush("#c0e0ff"));
32 _polygons[SUBTYPE(DEPARE, 6)] = Polygon(QBrush("#ffffff"));
33 _polygons[TYPE(DMPGRD)] = Polygon(QBrush(QColor("#a3a3a3"),
34 Qt::Dense3Pattern));
35 _polygons[TYPE(FAIRWY)] = Polygon(Qt::NoBrush, QPen(QColor("#888888"), 1,
36 Qt::DashDotDotLine));
37 _polygons[TYPE(OBSTRN)] = Polygon(Qt::NoBrush, QPen(QColor("#000000"), 1.5,
38 Qt::DotLine));
39 _polygons[TYPE(UWTROC)] = Polygon(Qt::NoBrush, QPen(QColor("#000000"), 1.5,
40 Qt::DotLine));
41 _polygons[TYPE(PONTON)] = Polygon(QBrush("#333333"));
42 _polygons[TYPE(I_PONTON)] = Polygon(QBrush("#333333"));
43 _polygons[TYPE(HULKES)] = Polygon(QBrush("#333333"));
44 _polygons[TYPE(I_HULKES)] = Polygon(QBrush("#333333"));
45 _polygons[TYPE(DRYDOC)] = Polygon(QBrush("#333333"));
46 _polygons[TYPE(SLCONS)] = Polygon(Qt::NoBrush, QPen(QColor("#333333"), 1.5,
47 Qt::DashLine));
48 _polygons[TYPE(I_SLCONS)] = Polygon(Qt::NoBrush, QPen(QColor("#333333"), 1.5,
49 Qt::DashLine));
50 _polygons[TYPE(LAKARE)] = Polygon(QBrush("#9fc4e1"),
51 QPen(QColor("#000000"), 1));
52 _polygons[TYPE(CANALS)] = Polygon(QBrush("#9fc4e1"),
53 QPen(QColor("#000000"), 1));
54 _polygons[TYPE(RIVERS)] = Polygon(QBrush("#9fc4e1"));
55 _polygons[TYPE(DYKCON)] = Polygon(QBrush(QColor("#9fc4e1"),
56 Qt::Dense4Pattern), QPen(QColor("#000000"), 1));
57 _polygons[TYPE(AIRARE)] = Polygon(QBrush("#333333"));
58 _polygons[TYPE(TSEZNE)] = Polygon(QBrush("#80fcb4fc"));
59 _polygons[TYPE(DRGARE)] = Polygon(QBrush(QColor("#a0a0ff"),
60 Qt::Dense4Pattern));
61 _polygons[TYPE(UNSARE)] = Polygon(QBrush("#999999"));
62 _polygons[SUBTYPE(RESARE, 9)] = Polygon(QBrush(QColor("#ff0000"),
63 Qt::BDiagPattern));
64 _polygons[SUBTYPE(RESARE, 2)] = Polygon(QImage(":/marine/noanchor-line.png"));
65 _polygons[SUBTYPE(I_RESARE, 2)] = Polygon(QImage(":/marine/noanchor-line.png"));
66 _polygons[SUBTYPE(RESARE, 17)] = Polygon(
67 QImage(":/marine/entry-prohibited-line.png"));
68 _polygons[SUBTYPE(I_RESARE, 17)] = Polygon(
69 QImage(":/marine/entry-prohibited-line.png"));
70 _polygons[SUBTYPE(RESARE, 12)] = Polygon(QImage(":/marine/safety-zone-line.png"));
71 _polygons[SUBTYPE(I_RESARE, 12)] = Polygon(QImage(":/marine/safety-zone-line.png"));
72 _polygons[SUBTYPE(RESARE, 1)] = Polygon(QImage(":/marine/safety-zone-line.png"));
73 _polygons[SUBTYPE(ACHARE, 1)] = Polygon(QImage(":/marine/anchor-line.png"));
74 _polygons[SUBTYPE(I_ACHARE, 1)] = Polygon(QImage(":/marine/anchor-line.png"));
75 _polygons[TYPE(PRCARE)] = Polygon(QBrush(QColor("#eb49eb"),
76 Qt::BDiagPattern));
77 _polygons[TYPE(DAMCON)] = Polygon(QBrush("#d98b21"), QPen(QColor("#000000"),
78 1));
79 _polygons[TYPE(DRYDOC)] = Polygon(QBrush("#ebab54"), QPen(QColor("#000000"),
80 1));
81 _polygons[TYPE(PYLONS)] = Polygon(QBrush("#a58140"), QPen(QColor("#000000"),
82 1));
83 _polygons[TYPE(FLODOC)] = Polygon(QBrush("#333333"), QPen(QColor("#000000"),
84 1));
85 _polygons[TYPE(I_FLODOC)] = Polygon(QBrush("#333333"),
86 QPen(QColor("#000000"), 1));
87 _polygons[TYPE(DWRTPT)] = Polygon(QImage(":/marine/dw-route-line.png"));
88 _polygons[TYPE(MORFAC)] = Polygon(QBrush("#e8e064"), QPen(QColor("#000000"),
89 2));
90 _polygons[TYPE(GATCON)] = Polygon(QBrush("#000000"));
91 _polygons[TYPE(I_GATCON)] = Polygon(QBrush("#000000"));
92 _polygons[TYPE(I_TERMNL)] = Polygon(QBrush(QColor("#b8b04b")),
93 QPen(QColor("#966118")));
94 _polygons[TYPE(SILTNK)] = Polygon(QBrush("#d98b21"), QPen(QColor("#966118"),
95 2));
96 _polygons[TYPE(LOKBSN)] = Polygon(QBrush(QColor("#333333"),
97 Qt::Dense7Pattern));
98 _polygons[TYPE(I_LOKBSN)] = Polygon(QBrush(QColor("#333333"),
99 Qt::Dense7Pattern));
100 _polygons[TYPE(TUNNEL)] = Polygon(Qt::NoBrush, QPen(QColor("#a58140"), 1.5,
101 Qt::DashLine));
102 _polygons[TYPE(CBLARE)] = Polygon(QImage(":/marine/cable-area-line.png"));
103 _polygons[TYPE(PIPARE)] = Polygon(QImage(":/marine/pipeline-area-line.png"));
104 _polygons[SUBTYPE(MARKUL, 3)] = Polygon(QImage(":/marine/fishing-farm-line.png"));
105 _polygons[SUBTYPE(I_BERTHS, 6)] = Polygon(Qt::NoBrush, QPen(QColor("#eb49eb"),
106 1, Qt::DashLine));
108 _drawOrder
109 << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0)
110 << SUBTYPE(DEPARE, 1) << SUBTYPE(DEPARE, 2) << SUBTYPE(DEPARE, 3)
111 << TYPE(UNSARE) << SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5)
112 << SUBTYPE(DEPARE, 6) << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON)
113 << TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(LOKBSN)
114 << TYPE(I_LOKBSN) << TYPE(BUAARE) << TYPE(BUISGL) << TYPE(SILTNK)
115 << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(I_BRIDGE) << TYPE(TUNNEL)
116 << TYPE(I_TERMNL) << TYPE(SLCONS) << TYPE(I_SLCONS) << TYPE(PONTON)
117 << TYPE(I_PONTON) << TYPE(HULKES) << TYPE(I_HULKES) << TYPE(FLODOC)
118 << TYPE(I_FLODOC) << TYPE(DRYDOC) << TYPE(DAMCON) << TYPE(PYLONS)
119 << TYPE(MORFAC) << TYPE(GATCON) << TYPE(I_GATCON) << SUBTYPE(I_BERTHS, 6)
120 << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) << TYPE(UWTROC)
121 << TYPE(DWRTPT) << SUBTYPE(ACHARE, 1) << SUBTYPE(I_ACHARE, 1)
122 << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) << SUBTYPE(I_RESARE, 2)
123 << SUBTYPE(RESARE, 17) << SUBTYPE(I_RESARE, 17) << SUBTYPE(RESARE, 12)
124 << SUBTYPE(I_RESARE, 12) << SUBTYPE(RESARE, 1) << TYPE(CBLARE)
125 << TYPE(PIPARE) << TYPE(PRCARE) << SUBTYPE(MARKUL, 3);
128 void Style::lineStyle()
130 _lines[TYPE(BUISGL)] = Line(QPen(QColor("#966118"), 1.5));
131 _lines[TYPE(DEPCNT)] = Line(QPen(QColor("#659aef"), 1, Qt::SolidLine));
132 _lines[TYPE(DEPCNT)].setTextColor(QColor("#558adf"));
133 _lines[TYPE(DEPCNT)].setTextFontSize(Small);
134 _lines[TYPE(CBLOHD)] = Line(QImage(":/marine/cable-line.png"));
135 _lines[TYPE(I_CBLOHD)] = Line(QImage(":/marine/cable-line.png"));
136 _lines[TYPE(BRIDGE)] = Line(QPen(QColor("#a58140"), 3, Qt::SolidLine));
137 _lines[TYPE(I_BRIDGE)] = Line(QPen(QColor("#a58140"), 3, Qt::SolidLine));
138 _lines[TYPE(CBLSUB)] = Line(QImage(":/marine/cable.png"));
139 _lines[TYPE(CBLSUB)].setTextFontSize(Small);
140 _lines[TYPE(PIPSOL)] = Line(QImage(":/marine/pipeline.png"));
141 _lines[TYPE(PIPSOL)].setTextFontSize(Small);
142 _lines[TYPE(NAVLNE)] = Line(QPen(QColor("#eb49eb"), 1, Qt::DashLine));
143 _lines[TYPE(COALNE)] = Line(QPen(QColor("#000000"), 1, Qt::SolidLine));
144 _lines[TYPE(SLCONS)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
145 _lines[TYPE(I_SLCONS)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
146 _lines[TYPE(PONTON)] = Line(QPen(QColor("#333333"), 1, Qt::SolidLine));
147 _lines[TYPE(DYKCON)] = Line(QPen(QColor("#333333"), 2, Qt::SolidLine));
148 _lines[TYPE(RIVERS)] = Line(QPen(QColor("#000000"), 1, Qt::SolidLine));
149 _lines[TYPE(TSSBND)] = Line(QPen(QColor("#eb49eb"), 2, Qt::DashLine));
150 _lines[TYPE(LNDELV)] = Line(QPen(QColor("#999440"), 1, Qt::SolidLine));
151 _lines[TYPE(LNDELV)].setTextColor(QColor("#797420"));
152 _lines[TYPE(LNDELV)].setTextFontSize(Small);
153 _lines[TYPE(SLOTOP)] = Line(QPen(QColor("#797420"), 1, Qt::SolidLine));
154 _lines[TYPE(OBSTRN)] = Line(QPen(QColor("#000000"), 1.5, Qt::DotLine));
155 _lines[TYPE(FERYRT)] = Line(QImage(":/marine/ferry-line.png"));
156 _lines[TYPE(I_FERYRT)] = Line(QImage(":/marine/ferry-line.png"));
157 _lines[TYPE(RAILWY)] = Line(railroad());
158 _lines[TYPE(ROADWY)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
159 _lines[TYPE(GATCON)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
160 _lines[TYPE(I_GATCON)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
161 _lines[TYPE(TSELNE)] = Line(QPen(QColor("#80fcb4fc"), 4, Qt::SolidLine));
162 _lines[TYPE(I_WTWAXS)] = Line(QPen(QColor("#000000"), 0, Qt::DashLine));
163 _lines[SUBTYPE(RECTRC, 1)] = Line(QPen(QColor("#000000"), 0, Qt::SolidLine));
164 _lines[SUBTYPE(RECTRC, 2)] = Line(QPen(QColor("#000000"), 0, Qt::DashLine));
165 _lines[SUBTYPE(RCRTCL, 1)] = Line(QPen(QColor("#eb49eb"), 0, Qt::SolidLine));
166 _lines[SUBTYPE(RCRTCL, 2)] = Line(QPen(QColor("#eb49eb"), 0, Qt::DashLine));
167 _lines[TYPE(FAIRWY)] = Line(QPen(QColor("#888888"), 1, Qt::DashDotDotLine));
168 _lines[TYPE(BERTHS)] = Line(QPen(QColor("#333333"), 2));
169 _lines[TYPE(I_BERTHS)] = Line(QPen(QColor("#333333"), 2));
170 _lines[TYPE(FNCLNE)] = Line(QImage(":/marine/fence-line.png"));
171 _lines[TYPE(CONVYR)] = Line(QImage(":/marine/conveyor-line.png"));
172 _lines[TYPE(PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png"));
173 _lines[TYPE(I_PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png"));
174 _lines[TYPE(CANALS)] = Line(QPen(QColor("#9fc4e1"), 2));
177 void Style::pointStyle()
179 _points[SUBTYPE(BUAARE, 1)].setTextFontSize(Large);
180 _points[SUBTYPE(BUAARE, 5)].setTextFontSize(Large);
181 _points[SUBTYPE(BUAARE, 4)].setTextFontSize(Large);
182 _points[SUBTYPE(BUAARE, 2)].setTextFontSize(Small);
183 _points[SUBTYPE(BUAARE, 6)].setTextFontSize(Small);
184 _points[TYPE(SOUNDG)].setTextFontSize(Small);
185 _points[TYPE(SOUNDG)].setHaloColor(QColor());
186 _points[TYPE(BOYCAR)] = Point(QImage(":/marine/buoy.png"), Small);
187 _points[TYPE(BOYINB)] = Point(QImage(":/marine/buoy.png"), Small);
188 _points[TYPE(BOYISD)] = Point(QImage(":/marine/buoy.png"), Small);
189 _points[TYPE(BOYLAT)] = Point(QImage(":/marine/buoy.png"), Small);
190 _points[TYPE(I_BOYLAT)] = Point(QImage(":/marine/buoy.png"), Small);
191 _points[TYPE(BOYSAW)] = Point(QImage(":/marine/buoy.png"), Small);
192 _points[TYPE(BOYSPP)] = Point(QImage(":/marine/buoy.png"), Small);
193 _points[TYPE(BCNISD)] = Point(QImage(":/marine/beacon.png"), Small);
194 _points[TYPE(BCNLAT)] = Point(QImage(":/marine/beacon.png"), Small);
195 _points[TYPE(I_BCNLAT)] = Point(QImage(":/marine/beacon.png"), Small);
196 _points[TYPE(BCNSAW)] = Point(QImage(":/marine/beacon.png"), Small);
197 _points[TYPE(BCNSPP)] = Point(QImage(":/marine/beacon.png"), Small);
198 _points[SUBTYPE(LNDMRK, 3)] = Point(QImage(":/marine/chimney.png"));
199 _points[SUBTYPE(LNDMRK, 7)] = Point(QImage(":/marine/pylon.png"));
200 _points[SUBTYPE(LNDMRK, 9)] = Point(QImage(":/marine/monument.png"));
201 _points[SUBTYPE(LNDMRK, 20)] = Point(QImage(":/marine/church.png"));
202 _points[SUBTYPE(LNDMRK, 17)] = Point(QImage(":/marine/tower.png"));
203 _points[SUBTYPE(LNDMRK, 19)] = Point(QImage(":/marine/windmotor.png"));
204 _points[TYPE(LNDELV)] = Point(QImage(":/marine/triangulation-point.png"));
205 _points[TYPE(OBSTRN)] = Point(QImage(":/marine/obstruction.png"), Small);
206 _points[SUBTYPE(WRECKS, 0)] = Point(QImage(":/marine/wreck.png"), Small);
207 _points[SUBTYPE(WRECKS, 1)] = Point(QImage(":/marine/wreck.png"), Small);
208 _points[SUBTYPE(WRECKS, 2)] = Point(QImage(":/marine/wreck-dangerous.png"),
209 Small);
210 _points[SUBTYPE(WRECKS, 3)] = Point(QImage(":/marine/wreck.png"), Small);
211 _points[SUBTYPE(WRECKS, 4)] = Point(QImage(":/marine/wreck.png"), Small);
212 _points[SUBTYPE(WRECKS, 5)] = Point(QImage(":/marine/wreck-exposed.png"));
213 _points[SUBTYPE(UWTROC, 1)] = Point(QImage(":/marine/rock-exposed.png"),
214 Small);
215 _points[SUBTYPE(UWTROC, 2)] = Point(QImage(":/marine/rock-exposed.png"),
216 Small);
217 _points[SUBTYPE(UWTROC, 3)] = Point(QImage(":/marine/rock-dangerous.png"),
218 Small);
219 _points[SUBTYPE(UWTROC, 4)] = Point(QImage(":/marine/rock-dangerous.png"),
220 Small);
221 _points[SUBTYPE(UWTROC, 5)] = Point(QImage(":/marine/rock-dangerous.png"),
222 Small);
223 _points[SUBTYPE(HRBFAC, 4)] = Point(QImage(":/marine/fishing-harbor.png"));
224 _points[SUBTYPE(HRBFAC, 5)] = Point(QImage(":/marine/yacht-harbor.png"));
225 _points[SUBTYPE(HRBFAC, 9)] = Point(QImage(":/marine/shipyard.png"));
226 _points[SUBTYPE(I_HRBFAC, 4)] = Point(QImage(":/marine/fishing-harbor.png"));
227 _points[SUBTYPE(I_HRBFAC, 5)] = Point(QImage(":/marine/yacht-harbor.png"));
228 _points[SUBTYPE(I_HRBFAC, 9)] = Point(QImage(":/marine/shipyard.png"));
229 _points[TYPE(ACHBRT)] = Point(QImage(":/marine/anchorage.png"));
230 _points[TYPE(I_ACHBRT)] = Point(QImage(":/marine/anchorage.png"));
231 _points[TYPE(OFSPLF)] = Point(QImage(":/marine/platform.png"));
232 _points[TYPE(PILPNT)] = Point(QImage(":/marine/pile.png"), Small);
233 _points[SUBTYPE(MORFAC, 1)] = Point(QImage(":/marine/pile.png"), Small);
234 _points[SUBTYPE(MORFAC, 3)] = Point(QImage(":/marine/pile.png"), Small);
235 _points[SUBTYPE(MORFAC, 5)] = Point(QImage(":/marine/pile.png"), Small);
236 _points[SUBTYPE(MORFAC, 7)] = Point(QImage(":/marine/mooring-buoy.png"),
237 Small);
238 _points[TYPE(CRANES)] = Point(QImage(":/marine/crane.png"), Small);
239 _points[TYPE(I_CRANES)] = Point(QImage(":/marine/crane.png"), Small);
240 _points[SUBTYPE(I_DISMAR, 1)] = Point(QImage(":/marine/distance-mark.png"),
241 Small);
242 _points[SUBTYPE(I_DISMAR, 1)].setTextColor(QColor("#ffffff"));
243 _points[SUBTYPE(I_DISMAR, 1)].setHaloColor(QColor());
244 _points[SUBTYPE(I_DISMAR, 2)] = Point(QImage(":/marine/distance-mark-land.png"),
245 Small);
246 _points[SUBTYPE(I_DISMAR, 2)].setHaloColor(QColor());
247 _points[SUBTYPE(I_DISMAR, 3)] = _points[SUBTYPE(I_DISMAR, 2)];
248 _points[SUBTYPE(I_DISMAR, 4)] = _points[SUBTYPE(I_DISMAR, 2)];
249 _points[TYPE(CGUSTA)] = Point(QImage(":/marine/coast-guard.png"));
250 _points[TYPE(RDOSTA)] = Point(QImage(":/marine/radio.png"));
251 _points[TYPE(RADSTA)] = Point(QImage(":/marine/radar.png"));
252 _points[TYPE(RTPBCN)] = Point(QImage(":/marine/radar-transponder.png"));
253 _points[TYPE(SILTNK)] = Point(QImage(":/marine/silo.png"));
254 _points[TYPE(I_TRNBSN)] = Point(QImage(":/marine/turning-basin.png"));
255 _points[TYPE(I_WTWGAG)] = Point(QImage(":/marine/gauge.png"), Small);
256 _points[TYPE(I_RDOCAL)].setTextColor(QColor("#eb49eb"));
257 _points[TYPE(PYLONS)] = Point(QImage(":/marine/pylon.png"));
258 _points[SUBTYPE(I_BERTHS, 6)] = Point(QImage(":/marine/fleeting-area.png"));
259 _points[SUBTYPE(WATTUR, 1)] = Point(QImage(":/marine/breakers.png"));
260 _points[SUBTYPE(WATTUR, 3)] = Point(QImage(":/marine/overfalls.png"));
261 _points[SUBTYPE(WATTUR, 4)] = Point(QImage(":/marine/overfalls.png"));
262 _points[TYPE(PILBOP)] = Point(QImage(":/marine/boarding-place.png"));
263 _points[TYPE(SISTAT)] = Point(QImage(":/marine/pylon.png"));
264 _points[TYPE(SLCONS)] = Point(QImage(":/marine/construction.png"), Small);
266 _points[SUBTYPE(SMCFAC, 7)] = Point(QImage(":/POI/restaurant-11.png"), Small);
267 _points[SUBTYPE(SMCFAC, 11)] = Point(QImage(":/POI/pharmacy-11.png"), Small);
268 _points[SUBTYPE(SMCFAC, 12)] = Point(QImage(":/POI/drinking-water-11.png"),
269 Small);
270 _points[SUBTYPE(SMCFAC, 13)] = Point(QImage(":/POI/fuel-11.png"), Small);
271 _points[SUBTYPE(SMCFAC, 18)] = Point(QImage(":/POI/toilet-11.png"), Small);
272 _points[SUBTYPE(SMCFAC, 20)] = Point(QImage(":/POI/telephone-11.png"), Small);
273 _points[SUBTYPE(SMCFAC, 22)] = Point(QImage(":/POI/parking-11.png"), Small);
274 _points[SUBTYPE(SMCFAC, 25)] = Point(QImage(":/POI/campsite-11.png"), Small);
275 _points[TYPE(BUISGL)] = Point(QImage(":/marine/building.png"), Small);
276 _points[SUBTYPE(BUISGL, 2)] = Point(QImage(":/POI/harbor-11.png"), Small);
277 _points[SUBTYPE(BUISGL, 5)] = Point(QImage(":/POI/hospital-11.png"), Small);
278 _points[SUBTYPE(BUISGL, 6)] = Point(QImage(":/POI/post-11.png"), Small);
279 _points[SUBTYPE(BUISGL, 7)] = Point(QImage(":/POI/lodging-11.png"), Small);
280 _points[SUBTYPE(BUISGL, 9)] = Point(QImage(":/POI/police-11.png"), Small);
281 _points[SUBTYPE(BUISGL, 13)] = Point(QImage(":/POI/bank-11.png"), Small);
282 _points[SUBTYPE(BUISGL, 19)] = Point(QImage(":/POI/school-11.png"), Small);
283 _points[SUBTYPE(BUISGL, 20)] = Point(QImage(":/POI/religious-christian-11.png"),
284 Small);
285 _points[SUBTYPE(BUISGL, 22)] = Point(QImage(":/POI/religious-jewish-11.png"),
286 Small);
287 _points[SUBTYPE(BUISGL, 26)] = Point(QImage(":/POI/religious-muslim-11.png"),
288 Small);
289 _points[SUBTYPE(BUISGL, 33)] = Point(QImage(":/marine/pylon.png"), Small);
290 _points[SUBTYPE(BUISGL, 42)] = Point(QImage(":/POI/bus-11.png"), Small);
293 Style::Style()
295 polygonStyle();
296 lineStyle();
297 pointStyle();
300 const Style::Line &Style::line(uint type) const
302 static Line null;
304 QMap<uint, Line>::const_iterator it = _lines.find(type);
305 return (it == _lines.constEnd()) ? null : *it;
308 const Style::Polygon &Style::polygon(uint type) const
310 static Polygon null;
312 QMap<uint, Polygon>::const_iterator it = _polygons.find(type);
313 return (it == _polygons.constEnd()) ? null : *it;
316 const Style::Point &Style::point(uint type) const
318 static Point null;
320 QMap<uint, Point>::const_iterator it = _points.find(type);
321 return (it == _points.constEnd()) ? null : *it;