mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-07 10:43:02 +02:00
Compare commits
2 Commits
b3bb97f4cf
...
7c4316f32a
Author | SHA1 | Date | |
---|---|---|---|
7c4316f32a | |||
6b3c6a7738 |
@ -534,7 +534,7 @@ static Light::Color ordinaryLight(const QVector<Light> &lights)
|
||||
|
||||
static quint32 pointType(quint32 type, quint32 flags)
|
||||
{
|
||||
if (Style::hasColorset(type))
|
||||
if (Style::hasColorset(type) || Style::isDHPoint(type))
|
||||
return type | (flags & 0xFF000000);
|
||||
else if (Style::isLabelPoint(type))
|
||||
return type | (flags & 0xFFF00000);
|
||||
|
@ -605,16 +605,15 @@ bool RGNFile::readLclFields(Handle &hdl, const quint32 flags[3],
|
||||
} else
|
||||
size = m + 1;
|
||||
|
||||
if (i == 2 && point) {
|
||||
if (!readLclNavaid(hdl, size, point))
|
||||
return false;
|
||||
} else if (i == 3 && point) {
|
||||
if (!readLclImg(hdl, size, point))
|
||||
return false;
|
||||
} else {
|
||||
if (!seek(hdl, pos(hdl) + size))
|
||||
return false;
|
||||
}
|
||||
quint32 off = pos(hdl);
|
||||
|
||||
if (i == 2 && point)
|
||||
readLclNavaid(hdl, size, point);
|
||||
else if (i == 3 && point)
|
||||
readLclImg(hdl, size, point);
|
||||
|
||||
if (!seek(hdl, off + size))
|
||||
return false;
|
||||
}
|
||||
bitfield >>= 1;
|
||||
j++;
|
||||
|
@ -869,6 +869,9 @@ void Style::defaultPointStyle(qreal ratio)
|
||||
_points[0x10217] = Point(QImage(":/marine/pylon.png"));
|
||||
_points[0x10218] = Point(QImage(":/marine/pylon.png"));
|
||||
|
||||
_points[0x10300 | 29<<24] = Point(QImage(":/marine/flagstaff.png"));
|
||||
_points[0x10300 | 30<<24] = Point(QImage(":/marine/monument.png"));
|
||||
_points[0x10300 | 83<<24] = Point(QImage(":/marine/crane.png"));
|
||||
_points[0x10304] = Point(QImage(":/marine/building.png"));
|
||||
_points[0x10305] = Point(QImage(":/marine/chimney.png"), QPoint(0, -11));
|
||||
_points[0x10306] = Point(QImage(":/marine/church.png"));
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
static bool isRaster(quint32 type)
|
||||
{return (type == 0x10613);}
|
||||
static bool isDepthPoint(quint32 type)
|
||||
{return (type == 0x10301);}
|
||||
{return (type >= 0x10301 && type <= 0x10302);}
|
||||
static bool isObstructionPoint(quint32 type)
|
||||
{return (type >= 0x10400 && type <= 0x10401);}
|
||||
static bool isBuoy(quint32 type)
|
||||
@ -156,6 +156,8 @@ public:
|
||||
{return (type >= 0x10100 && type < 0x10200);}
|
||||
static bool isLabelPoint(quint32 type)
|
||||
{return type == 0x10500;}
|
||||
static bool isDHPoint(quint32 type)
|
||||
{return type == 0x10300;}
|
||||
static bool isMarinePoint(quint32 type)
|
||||
{return type >= 0x10100 && type < 0x10a00;}
|
||||
static bool isStyledLine(quint32 type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user