1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-07 18:53:02 +02:00

Compare commits

...

4 Commits

31 changed files with 140 additions and 56 deletions

View File

@ -144,42 +144,66 @@
<file alias="buoy-white-green.png">icons/map/marine/buoy-white-green.png</file> <file alias="buoy-white-green.png">icons/map/marine/buoy-white-green.png</file>
<file alias="buoy-white-red.png">icons/map/marine/buoy-white-red.png</file> <file alias="buoy-white-red.png">icons/map/marine/buoy-white-red.png</file>
<file alias="buoy-white-yellow.png">icons/map/marine/buoy-white-yellow.png</file> <file alias="buoy-white-yellow.png">icons/map/marine/buoy-white-yellow.png</file>
<file alias="buoy-white-yellow-white.png">icons/map/marine/buoy-white-yellow-white.png</file>
<file alias="buoy-green.png">icons/map/marine/buoy-green.png</file> <file alias="buoy-green.png">icons/map/marine/buoy-green.png</file>
<file alias="buoy-green-white.png">icons/map/marine/buoy-green-white.png</file> <file alias="buoy-green-white.png">icons/map/marine/buoy-green-white.png</file>
<file alias="buoy-green-white-green-white.png">icons/map/marine/buoy-green-white-green-white.png</file>
<file alias="buoy-green-black.png">icons/map/marine/buoy-green-black.png</file> <file alias="buoy-green-black.png">icons/map/marine/buoy-green-black.png</file>
<file alias="buoy-green-red.png">icons/map/marine/buoy-green-red.png</file> <file alias="buoy-green-red.png">icons/map/marine/buoy-green-red.png</file>
<file alias="buoy-green-red-green.png">icons/map/marine/buoy-green-red-green.png</file>
<file alias="buoy-green-red-green-red.png">icons/map/marine/buoy-green-red-green-red.png</file>
<file alias="buoy-red.png">icons/map/marine/buoy-red.png</file> <file alias="buoy-red.png">icons/map/marine/buoy-red.png</file>
<file alias="buoy-red-white.png">icons/map/marine/buoy-red-white.png</file> <file alias="buoy-red-white.png">icons/map/marine/buoy-red-white.png</file>
<file alias="buoy-red-white-red-white.png">icons/map/marine/buoy-red-white-red-white.png</file>
<file alias="buoy-red-black.png">icons/map/marine/buoy-red-black.png</file> <file alias="buoy-red-black.png">icons/map/marine/buoy-red-black.png</file>
<file alias="buoy-red-green.png">icons/map/marine/buoy-red-green.png</file> <file alias="buoy-red-green.png">icons/map/marine/buoy-red-green.png</file>
<file alias="buoy-red-green-red.png">icons/map/marine/buoy-red-green-red.png</file>
<file alias="buoy-red-green-red-green.png">icons/map/marine/buoy-red-green-red-green.png</file>
<file alias="buoy-yellow.png">icons/map/marine/buoy-yellow.png</file> <file alias="buoy-yellow.png">icons/map/marine/buoy-yellow.png</file>
<file alias="buoy-yellow-white.png">icons/map/marine/buoy-yellow-white.png</file> <file alias="buoy-yellow-white.png">icons/map/marine/buoy-yellow-white.png</file>
<file alias="buoy-yellow-white-yellow.png">icons/map/marine/buoy-yellow-white-yellow.png</file>
<file alias="buoy-yellow-black.png">icons/map/marine/buoy-yellow-black.png</file> <file alias="buoy-yellow-black.png">icons/map/marine/buoy-yellow-black.png</file>
<file alias="buoy-yellow-black-yellow.png">icons/map/marine/buoy-yellow-black-yellow.png</file>
<file alias="buoy-yellow-red-yellow.png">icons/map/marine/buoy-yellow-red-yellow.png</file>
<file alias="buoy-black-white.png">icons/map/marine/buoy-black-white.png</file> <file alias="buoy-black-white.png">icons/map/marine/buoy-black-white.png</file>
<file alias="buoy-black-red.png">icons/map/marine/buoy-black-red.png</file> <file alias="buoy-black-red.png">icons/map/marine/buoy-black-red.png</file>
<file alias="buoy-black-red-black.png">icons/map/marine/buoy-black-red-black.png</file>
<file alias="buoy-black-green.png">icons/map/marine/buoy-black-green.png</file> <file alias="buoy-black-green.png">icons/map/marine/buoy-black-green.png</file>
<file alias="buoy-black-yellow.png">icons/map/marine/buoy-black-yellow.png</file> <file alias="buoy-black-yellow.png">icons/map/marine/buoy-black-yellow.png</file>
<file alias="buoy-black-yellow-black.png">icons/map/marine/buoy-black-yellow-black.png</file>
<file alias="beacon.png">icons/map/marine/beacon.png</file> <file alias="beacon.png">icons/map/marine/beacon.png</file>
<file alias="beacon-white.png">icons/map/marine/beacon-white.png</file> <file alias="beacon-white.png">icons/map/marine/beacon-white.png</file>
<file alias="beacon-white-black.png">icons/map/marine/beacon-white-black.png</file> <file alias="beacon-white-black.png">icons/map/marine/beacon-white-black.png</file>
<file alias="beacon-white-green.png">icons/map/marine/beacon-white-green.png</file> <file alias="beacon-white-green.png">icons/map/marine/beacon-white-green.png</file>
<file alias="beacon-white-red.png">icons/map/marine/beacon-white-red.png</file> <file alias="beacon-white-red.png">icons/map/marine/beacon-white-red.png</file>
<file alias="beaon-white-yellow.png">icons/map/marine/beacon-white-yellow.png</file> <file alias="beacon-white-yellow.png">icons/map/marine/beacon-white-yellow.png</file>
<file alias="beacon-white-yellow-white.png">icons/map/marine/beacon-white-yellow-white.png</file>
<file alias="beacon-green.png">icons/map/marine/beacon-green.png</file> <file alias="beacon-green.png">icons/map/marine/beacon-green.png</file>
<file alias="beacon-green-white.png">icons/map/marine/beacon-green-white.png</file> <file alias="beacon-green-white.png">icons/map/marine/beacon-green-white.png</file>
<file alias="beacon-green-white-green-white.png">icons/map/marine/beacon-green-white-green-white.png</file>
<file alias="beacon-green-black.png">icons/map/marine/beacon-green-black.png</file> <file alias="beacon-green-black.png">icons/map/marine/beacon-green-black.png</file>
<file alias="beaco-green-red.png">icons/map/marine/beacon-green-red.png</file> <file alias="beacon-green-red.png">icons/map/marine/beacon-green-red.png</file>
<file alias="beacon-green-red-green.png">icons/map/marine/beacon-green-red-green.png</file>
<file alias="beacon-green-red-green-red.png">icons/map/marine/beacon-green-red-green-red.png</file>
<file alias="beacon-red.png">icons/map/marine/beacon-red.png</file> <file alias="beacon-red.png">icons/map/marine/beacon-red.png</file>
<file alias="beacon-red-white.png">icons/map/marine/beacon-red-white.png</file> <file alias="beacon-red-white.png">icons/map/marine/beacon-red-white.png</file>
<file alias="beacon-red-white-red-white.png">icons/map/marine/beacon-red-white-red-white.png</file>
<file alias="beacon-red-black.png">icons/map/marine/beacon-red-black.png</file> <file alias="beacon-red-black.png">icons/map/marine/beacon-red-black.png</file>
<file alias="beacon-red-green.png">icons/map/marine/beacon-red-green.png</file> <file alias="beacon-red-green.png">icons/map/marine/beacon-red-green.png</file>
<file alias="beacon-red-green-red.png">icons/map/marine/beacon-red-green-red.png</file>
<file alias="beacon-red-green-red-green.png">icons/map/marine/beacon-red-green-red-green.png</file>
<file alias="beacon-yellow.png">icons/map/marine/beacon-yellow.png</file> <file alias="beacon-yellow.png">icons/map/marine/beacon-yellow.png</file>
<file alias="beacon-yellow-white.png">icons/map/marine/beacon-yellow-white.png</file> <file alias="beacon-yellow-white.png">icons/map/marine/beacon-yellow-white.png</file>
<file alias="beacon-yellow-white-yellow.png">icons/map/marine/beacon-yellow-white-yellow.png</file>
<file alias="beacon-yellow-black.png">icons/map/marine/beacon-yellow-black.png</file> <file alias="beacon-yellow-black.png">icons/map/marine/beacon-yellow-black.png</file>
<file alias="beacon-yellow-black-yellow.png">icons/map/marine/beacon-yellow-black-yellow.png</file>
<file alias="beacon-yellow-red-yellow.png">icons/map/marine/beacon-yellow-red-yellow.png</file>
<file alias="beacon-black-white.png">icons/map/marine/beacon-black-white.png</file> <file alias="beacon-black-white.png">icons/map/marine/beacon-black-white.png</file>
<file alias="beacon-black-red.png">icons/map/marine/beacon-black-red.png</file> <file alias="beacon-black-red.png">icons/map/marine/beacon-black-red.png</file>
<file alias="beacon-black-red-black.png">icons/map/marine/beacon-black-red-black.png</file>
<file alias="beacon-black-green.png">icons/map/marine/beacon-black-green.png</file> <file alias="beacon-black-green.png">icons/map/marine/beacon-black-green.png</file>
<file alias="beacon-black-yellow.png">icons/map/marine/beacon-black-yellow.png</file> <file alias="beacon-black-yellow.png">icons/map/marine/beacon-black-yellow.png</file>
<file alias="beacon-black-yellow-black.png">icons/map/marine/beacon-black-yellow-black.png</file>
<file alias="rock-exposed.png">icons/map/marine/rock-exposed.png</file> <file alias="rock-exposed.png">icons/map/marine/rock-exposed.png</file>
<file alias="rock-dangerous.png">icons/map/marine/rock-dangerous.png</file> <file alias="rock-dangerous.png">icons/map/marine/rock-dangerous.png</file>
<file alias="wreck.png">icons/map/marine/wreck.png</file> <file alias="wreck.png">icons/map/marine/wreck.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

View File

@ -335,8 +335,8 @@ static uint color(const QList<QByteArray> &list)
{ {
uint c = 0; uint c = 0;
for (int i = 0; i < list.size() && i < 2; i++) for (int i = 0; i < list.size() && i < 4; i++)
c |= list.at(i).toUInt() << (i * 8); c |= list.at(i).toUInt() << (i * 4);
return c; return c;
} }

View File

@ -6,8 +6,12 @@
using namespace ENC; using namespace ENC;
using namespace Util; using namespace Util;
#define COLOR2(c1, c2) (((c2)<<4) | (c1))
#define COLOR3(c1, c2, c3) (((c3)<<8) | ((c2)<<4) | (c1))
#define COLOR4(c1, c2, c3, c4) (((c4)<<12) | ((c3)<<8) | ((c2)<<4) | (c1))
#define PNT(type, subtype, img, dx, dy) \ #define PNT(type, subtype, img, dx, dy) \
_points[SUBTYPE((type), (subtype))] = Point(QImage(img), Small, QPoint(dx, dy)); _points[SUBTYPE((type), (subtype))] = Point(QImage(img), Small, QPoint((dx), (dy)));
#define COLORSET(type, name, dx, dy) \ #define COLORSET(type, name, dx, dy) \
PNT(type, 0, ":/marine/" name ".png", dx, dy); \ PNT(type, 0, ":/marine/" name ".png", dx, dy); \
@ -24,30 +28,44 @@ using namespace Util;
PNT(type, 11, ":/marine/" name "-yellow.png", dx, dy); \ PNT(type, 11, ":/marine/" name "-yellow.png", dx, dy); \
PNT(type, 12, ":/marine/" name ".png", dx, dy); \ PNT(type, 12, ":/marine/" name ".png", dx, dy); \
PNT(type, 13, ":/marine/" name ".png", dx, dy); \ PNT(type, 13, ":/marine/" name ".png", dx, dy); \
PNT(type, 0x201, ":/marine/" name "-white-black.png", dx, dy); \ PNT(type, COLOR2(1, 2), ":/marine/" name "-white-black.png", dx, dy); \
PNT(type, 0x301, ":/marine/" name "-white-red.png", dx, dy); \ PNT(type, COLOR2(1, 3), ":/marine/" name "-white-red.png", dx, dy); \
PNT(type, 0x401, ":/marine/" name "-white-green.png", dx, dy); \ PNT(type, COLOR2(1, 4), ":/marine/" name "-white-green.png", dx, dy); \
PNT(type, 0x601, ":/marine/" name "-white-yellow.png", dx, dy); \ PNT(type, COLOR2(1, 6), ":/marine/" name "-white-yellow.png", dx, dy); \
PNT(type, 0x901, ":/marine/" name "-white-yellow.png", dx, dy); \ PNT(type, COLOR2(1, 9), ":/marine/" name "-white-yellow.png", dx, dy); \
PNT(type, 0xb01, ":/marine/" name "-white-yellow.png", dx, dy); \ PNT(type, COLOR2(1, 11), ":/marine/" name "-white-yellow.png", dx, dy); \
PNT(type, 0x102, ":/marine/" name "-black-white.png", dx, dy); \ PNT(type, COLOR2(2, 1), ":/marine/" name "-black-white.png", dx, dy); \
PNT(type, 0x302, ":/marine/" name "-black-red.png", dx, dy); \ PNT(type, COLOR2(2, 3), ":/marine/" name "-black-red.png", dx, dy); \
PNT(type, 0x402, ":/marine/" name "-black-green.png", dx, dy); \ PNT(type, COLOR2(2, 4), ":/marine/" name "-black-green.png", dx, dy); \
PNT(type, 0x602, ":/marine/" name "-black-yellow.png", dx, dy); \ PNT(type, COLOR2(2, 6), ":/marine/" name "-black-yellow.png", dx, dy); \
PNT(type, 0x902, ":/marine/" name "-black-yellow.png", dx, dy); \ PNT(type, COLOR2(2, 9), ":/marine/" name "-black-yellow.png", dx, dy); \
PNT(type, 0xb02, ":/marine/" name "-black-yellow.png", dx, dy); \ PNT(type, COLOR2(2, 11), ":/marine/" name "-black-yellow.png", dx, dy); \
PNT(type, 0x103, ":/marine/" name "-red-white.png", dx, dy); \ PNT(type, COLOR2(3, 1), ":/marine/" name "-red-white.png", dx, dy); \
PNT(type, 0x203, ":/marine/" name "-red-black.png", dx, dy); \ PNT(type, COLOR2(3, 2), ":/marine/" name "-red-black.png", dx, dy); \
PNT(type, 0x403, ":/marine/" name "-red-green.png", dx, dy); \ PNT(type, COLOR2(3, 4), ":/marine/" name "-red-green.png", dx, dy); \
PNT(type, 0x104, ":/marine/" name "-green-white.png", dx, dy); \ PNT(type, COLOR2(4, 1), ":/marine/" name "-green-white.png", dx, dy); \
PNT(type, 0x204, ":/marine/" name "-green-black.png", dx, dy); \ PNT(type, COLOR2(4, 2), ":/marine/" name "-green-black.png", dx, dy); \
PNT(type, 0x304, ":/marine/" name "-green-red.png", dx, dy); \ PNT(type, COLOR2(4, 3), ":/marine/" name "-green-red.png", dx, dy); \
PNT(type, 0x106, ":/marine/" name "-yellow-white.png", dx, dy); \ PNT(type, COLOR2(6, 1), ":/marine/" name "-yellow-white.png", dx, dy); \
PNT(type, 0x109, ":/marine/" name "-yellow-white.png", dx, dy); \ PNT(type, COLOR2(9, 1), ":/marine/" name "-yellow-white.png", dx, dy); \
PNT(type, 0x10b, ":/marine/" name "-yellow-white.png", dx, dy); \ PNT(type, COLOR2(11, 1), ":/marine/" name "-yellow-white.png", dx, dy); \
PNT(type, 0x206, ":/marine/" name "-yellow-black.png", dx, dy); \ PNT(type, COLOR2(6, 2), ":/marine/" name "-yellow-black.png", dx, dy); \
PNT(type, 0x209, ":/marine/" name "-yellow-black.png", dx, dy); \ PNT(type, COLOR2(9, 2), ":/marine/" name "-yellow-black.png", dx, dy); \
PNT(type, 0x20b, ":/marine/" name "-yellow-black.png", dx, dy); PNT(type, COLOR2(11, 2), ":/marine/" name "-yellow-black.png", dx, dy); \
PNT(type, COLOR3(1, 6, 1), ":/marine/" name "-white-yellow-white.png", dx, dy); \
PNT(type, COLOR3(1, 9, 1), ":/marine/" name "-white-yellow-white.png", dx, dy); \
PNT(type, COLOR3(1, 11, 1), ":/marine/" name "-white-yellow-white.png", dx, dy); \
PNT(type, COLOR3(2, 3, 2), ":/marine/" name "-black-red-black.png", dx, dy); \
PNT(type, COLOR3(2, 6, 2), ":/marine/" name "-black-yellow-black.png", dx, dy); \
PNT(type, COLOR3(3, 4, 3), ":/marine/" name "-red-green-red.png", dx, dy); \
PNT(type, COLOR3(4, 3, 4), ":/marine/" name "-green-red-green.png", dx, dy); \
PNT(type, COLOR3(6, 1, 6), ":/marine/" name "-yellow-white-yellow.png", dx, dy); \
PNT(type, COLOR3(6, 2, 6), ":/marine/" name "-yellow-black-yellow.png", dx, dy); \
PNT(type, COLOR3(6, 3, 6), ":/marine/" name "-yellow-red-yellow.png", dx, dy); \
PNT(type, COLOR4(3, 1, 3, 1), ":/marine/" name "-red-white-red-white.png", dx, dy); \
PNT(type, COLOR4(3, 4, 3, 4), ":/marine/" name "-red-green-red-green.png", dx, dy); \
PNT(type, COLOR4(4, 1, 4, 1), ":/marine/" name "-green-white-green-white.png", dx, dy); \
PNT(type, COLOR4(4, 3, 4, 3), ":/marine/" name "-green-red-green-red.png", dx, dy);
static QImage railroad(qreal ratio) static QImage railroad(qreal ratio)
{ {

View File

@ -522,7 +522,8 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
for (int i = 0; i < points.size(); i++) { for (int i = 0; i < points.size(); i++) {
const MapData::Point &point = points.at(i); const MapData::Point &point = points.at(i);
const Style *style = _data->style(); const Style *style = _data->style();
const Style::Point &ps = style->point(point.type); const Style::Point &ps = style->point(Style::hasColorset(point.type)
? point.type | (point.flags & 0xFF000000) : point.type);
bool poi = Style::isPOI(point.type); bool poi = Style::isPOI(point.type);
bool sl = sectorLight(point.lights); bool sl = sectorLight(point.lights);

View File

@ -402,18 +402,20 @@ bool RGNFile::readLclLights(Handle &hdl, quint32 &size, quint32 lights,
bool RGNFile::readLclNavaid(Handle &hdl, quint32 size, bool RGNFile::readLclNavaid(Handle &hdl, quint32 size,
MapData::Point *point) const MapData::Point *point) const
{ {
quint32 unused, flags; quint32 unused, color, flags;
// Discard the class lights info if any (marine points may have both!) // Discard the class lights info if any (marine points may have both!)
point->lights.clear(); point->lights.clear();
point->flags &= 0xffffff;
if (!(size >= 4 && readUInt32(hdl, flags))) if (!(size >= 4 && readUInt32(hdl, flags)))
return false; return false;
size -= 4; size -= 4;
if (flags & 1) { if (flags & 1) {
if (!(size >= 1 && readUInt8(hdl, unused))) if (!(size >= 1 && readUInt8(hdl, color)))
return false; return false;
size--; size--;
point->flags |= color<<24;
} }
if (flags & 2) { if (flags & 2) {
if (!(size >= 1 && readUInt8(hdl, unused))) if (!(size >= 1 && readUInt8(hdl, unused)))

View File

@ -7,6 +7,37 @@
using namespace IMG; using namespace IMG;
using namespace Util; using namespace Util;
#define PNT(type, color, img, dx, dy) \
_points[(type) | (color)<<24] = Point(QImage(img), QPoint(dx, dy));
#define COLORSET(type, name, dx, dy) \
PNT(type, 0, ":/marine/" name ".png", dx, dy); \
PNT(type, 1, ":/marine/" name "-red.png", dx, dy); \
PNT(type, 2, ":/marine/" name "-green.png", dx, dy); \
PNT(type, 3, ":/marine/" name "-yellow.png", dx, dy); \
PNT(type, 4, ":/marine/" name "-white.png", dx, dy); \
PNT(type, 5, ":/marine/" name ".png", dx, dy); \
PNT(type, 6, ":/marine/" name "-black-yellow.png", dx, dy); \
PNT(type, 7, ":/marine/" name "-white-red.png", dx, dy); \
PNT(type, 8, ":/marine/" name "-black-red.png", dx, dy); \
PNT(type, 9, ":/marine/" name "-white-green.png", dx, dy); \
PNT(type, 10, ":/marine/" name "-red-yellow.png", dx, dy); \
PNT(type, 11, ":/marine/" name "-red-green.png", dx, dy); \
PNT(type, 12, ":/marine/" name "yellow.png", dx, dy); \
PNT(type, 13, ":/marine/" name "-black-yellow-black.png", dx, dy); \
PNT(type, 14, ":/marine/" name "-yellow-black.png", dx, dy); \
PNT(type, 15, ":/marine/" name "-yellow-black-yellow.png", dx, dy); \
PNT(type, 16, ":/marine/" name "-red-white.png", dx, dy); \
PNT(type, 17, ":/marine/" name "-green-red-green.png", dx, dy); \
PNT(type, 18, ":/marine/" name "-red-green-red.png", dx, dy); \
PNT(type, 19, ":/marine/" name "-black-red-black.png", dx, dy); \
PNT(type, 20, ":/marine/" name "-yellow-red-yellow.png", dx, dy); \
PNT(type, 21, ":/marine/" name "-green-red.png", dx, dy); \
PNT(type, 22, ":/marine/" name "-black-white.png", dx, dy); \
PNT(type, 23, ":/marine/" name "-white-yellow.png", dx, dy); \
PNT(type, 24, ":/marine/" name "-yellow-white.png", dx, dy); \
PNT(type, 25, ":/marine/" name "-green-white.png", dx, dy);
static QFont pixelSizeFont(int pixelSize) static QFont pixelSizeFont(int pixelSize)
{ {
QFont f; QFont f;
@ -731,29 +762,32 @@ void Style::defaultPointStyle(qreal ratio)
_points[0x10108] = Point(QImage(":/marine/light-major.png")); _points[0x10108] = Point(QImage(":/marine/light-major.png"));
_points[0x10109] = Point(QImage(":/marine/light-major.png")); _points[0x10109] = Point(QImage(":/marine/light-major.png"));
_points[0x1010a] = Point(QImage(":/marine/light-major.png")); _points[0x1010a] = Point(QImage(":/marine/light-major.png"));
_points[0x10200] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6));
_points[0x10201] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10200, "buoy", 6, -6);
_points[0x10202] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10201, "buoy", 6, -6);
_points[0x10203] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10202, "buoy", 6, -6);
_points[0x10204] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10203, "buoy", 6, -6);
_points[0x10205] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10204, "buoy", 6, -6);
_points[0x10206] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10205, "buoy", 6, -6);
COLORSET(0x10206, "beacon", 0, -8);
_points[0x10207] = Point(QImage(":/marine/spar-buoy.png"), QPoint(2, -9)); _points[0x10207] = Point(QImage(":/marine/spar-buoy.png"), QPoint(2, -9));
_points[0x10208] = Point(QImage(":/marine/buoy.png"), QPoint(2, -9)); COLORSET(0x10208, "buoy", 6, -6);
_points[0x10209] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x10209, "buoy", 6, -6);
_points[0x1020a] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x1020a, "buoy", 6, -6);
_points[0x1020b] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x1020b, "buoy", 6, -6);
_points[0x1020c] = Point(QImage(":/marine/buoy.png"), QPoint(6, -6)); COLORSET(0x1020c, "buoy", 6, -6);
_points[0x1020d] = Point(QImage(":/marine/platform.png")); _points[0x1020d] = Point(QImage(":/marine/platform.png"));
_points[0x1020e] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x1020e, "beacon", 0, -8);
_points[0x1020f] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x1020f, "beacon", 0, -8);
_points[0x10210] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10210, "beacon", 0, -8);
_points[0x10211] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10210, "beacon", 0, -8);
_points[0x10212] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10211, "beacon", 0, -8);
_points[0x10213] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10212, "beacon", 0, -8);
_points[0x10214] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10213, "beacon", 0, -8);
_points[0x10215] = Point(QImage(":/marine/beacon.png"), QPoint(0, -8)); COLORSET(0x10214, "beacon", 0, -8);
COLORSET(0x10215, "beacon", 0, -8);
_points[0x10216] = Point(QImage(":/marine/mooring-buoy.png"), QPoint(0, -5)); _points[0x10216] = Point(QImage(":/marine/mooring-buoy.png"), QPoint(0, -5));
_points[0x10304] = Point(QImage(":/marine/building.png")); _points[0x10304] = Point(QImage(":/marine/building.png"));
_points[0x10305] = Point(QImage(":/marine/chimney.png"), QPoint(0, -11)); _points[0x10305] = Point(QImage(":/marine/chimney.png"), QPoint(0, -11));
_points[0x10306] = Point(QImage(":/marine/church.png")); _points[0x10306] = Point(QImage(":/marine/church.png"));
@ -761,6 +795,7 @@ void Style::defaultPointStyle(qreal ratio)
_points[0x10308] = Point(QImage(":/marine/tower.png"), QPoint(0, -11)); _points[0x10308] = Point(QImage(":/marine/tower.png"), QPoint(0, -11));
_points[0x1030a] = Point(QImage(":/marine/triangulation-point.png")); _points[0x1030a] = Point(QImage(":/marine/triangulation-point.png"));
_points[0x1030b] = Point(QImage(":/marine/radio.png")); _points[0x1030b] = Point(QImage(":/marine/radio.png"));
_points[0x10400] = Point(QImage(":/marine/obstruction.png")); _points[0x10400] = Point(QImage(":/marine/obstruction.png"));
_points[0x10401] = Point(QImage(":/marine/obstruction.png")); _points[0x10401] = Point(QImage(":/marine/obstruction.png"));
_points[0x10402] = Point(QImage(":/marine/wreck.png")); _points[0x10402] = Point(QImage(":/marine/wreck.png"));
@ -768,6 +803,7 @@ void Style::defaultPointStyle(qreal ratio)
_points[0x10408] = Point(QImage(":/marine/obstruction-covers.png")); _points[0x10408] = Point(QImage(":/marine/obstruction-covers.png"));
_points[0x1040a] = Point(QImage(":/marine/rock-dangerous.png")); _points[0x1040a] = Point(QImage(":/marine/rock-dangerous.png"));
_points[0x1040c] = Point(QImage(":/marine/rock-exposed.png")); _points[0x1040c] = Point(QImage(":/marine/rock-exposed.png"));
_points[0x10701] = Point(QImage(":/marine/anchorage.png")); _points[0x10701] = Point(QImage(":/marine/anchorage.png"));
_points[0x10702] = Point(QImage(":/marine/boarding-place.png")); _points[0x10702] = Point(QImage(":/marine/boarding-place.png"));
_points[0x10703] = Point(QImage(":/marine/yacht-harbor.png")); _points[0x10703] = Point(QImage(":/marine/yacht-harbor.png"));

View File

@ -118,16 +118,16 @@ public:
static bool isPOI(quint32 type) static bool isPOI(quint32 type)
{return !((type >= TYPE(0x01) && type <= TYPE(0x1f)) {return !((type >= TYPE(0x01) && type <= TYPE(0x1f))
|| (type >= 0x11400 && type < 0x11500));} || (type >= 0x11400 && type < 0x11500));}
static bool isContourLine(quint32 type) static bool isContourLine(quint32 type)
{return ((type >= TYPE(0x20) && type <= TYPE(0x25)) {return ((type >= TYPE(0x20) && type <= TYPE(0x25))
|| (type & 0xffff00) == TYPE(0x109));} || (type & 0xffff00) == TYPE(0x109));}
static bool isWaterArea(quint32 type) static bool isWaterArea(quint32 type)
{return ((type >= TYPE(0x3c) && type <= TYPE(0x44)) {return ((type >= TYPE(0x3c) && type <= TYPE(0x44))
|| (type & 0xffff00) == TYPE(0x10b));} || (type & 0xffff00) == TYPE(0x10b));}
static bool isWaterLine(quint32 type) static bool isWaterLine(quint32 type)
{return (type == TYPE(0x26) || type == TYPE(0x18) {return (type == TYPE(0x26) || type == TYPE(0x18)
|| type == TYPE(0x1f));} || type == TYPE(0x1f));}
static bool isMilitaryArea(quint32 type) static bool isMilitaryArea(quint32 type)
{return (type == TYPE(0x04) || type == 0x10901);} {return (type == TYPE(0x04) || type == 0x10901);}
static bool isNatureReserve(quint32 type) static bool isNatureReserve(quint32 type)
@ -156,6 +156,9 @@ public:
{return type >= 0x10100 && type < 0x10a00;} {return type >= 0x10100 && type < 0x10a00;}
static bool isMarina(quint32 type) static bool isMarina(quint32 type)
{return type == 0x10703;} {return type == 0x10703;}
static bool hasColorset(quint32 type)
{return (isBuoy(type)
&& !(type == 0x10207 || type == 0x1020d || type == 0x10216));}
static QColor color(Light::Color c); static QColor color(Light::Color c);