mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-07 18:53: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)
|
static quint32 pointType(quint32 type, quint32 flags)
|
||||||
{
|
{
|
||||||
if (Style::hasColorset(type))
|
if (Style::hasColorset(type) || Style::isDHPoint(type))
|
||||||
return type | (flags & 0xFF000000);
|
return type | (flags & 0xFF000000);
|
||||||
else if (Style::isLabelPoint(type))
|
else if (Style::isLabelPoint(type))
|
||||||
return type | (flags & 0xFFF00000);
|
return type | (flags & 0xFFF00000);
|
||||||
|
@ -605,16 +605,15 @@ bool RGNFile::readLclFields(Handle &hdl, const quint32 flags[3],
|
|||||||
} else
|
} else
|
||||||
size = m + 1;
|
size = m + 1;
|
||||||
|
|
||||||
if (i == 2 && point) {
|
quint32 off = pos(hdl);
|
||||||
if (!readLclNavaid(hdl, size, point))
|
|
||||||
return false;
|
if (i == 2 && point)
|
||||||
} else if (i == 3 && point) {
|
readLclNavaid(hdl, size, point);
|
||||||
if (!readLclImg(hdl, size, point))
|
else if (i == 3 && point)
|
||||||
return false;
|
readLclImg(hdl, size, point);
|
||||||
} else {
|
|
||||||
if (!seek(hdl, pos(hdl) + size))
|
if (!seek(hdl, off + size))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
bitfield >>= 1;
|
bitfield >>= 1;
|
||||||
j++;
|
j++;
|
||||||
|
@ -869,6 +869,9 @@ void Style::defaultPointStyle(qreal ratio)
|
|||||||
_points[0x10217] = Point(QImage(":/marine/pylon.png"));
|
_points[0x10217] = Point(QImage(":/marine/pylon.png"));
|
||||||
_points[0x10218] = 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[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"));
|
||||||
|
@ -147,7 +147,7 @@ public:
|
|||||||
static bool isRaster(quint32 type)
|
static bool isRaster(quint32 type)
|
||||||
{return (type == 0x10613);}
|
{return (type == 0x10613);}
|
||||||
static bool isDepthPoint(quint32 type)
|
static bool isDepthPoint(quint32 type)
|
||||||
{return (type == 0x10301);}
|
{return (type >= 0x10301 && type <= 0x10302);}
|
||||||
static bool isObstructionPoint(quint32 type)
|
static bool isObstructionPoint(quint32 type)
|
||||||
{return (type >= 0x10400 && type <= 0x10401);}
|
{return (type >= 0x10400 && type <= 0x10401);}
|
||||||
static bool isBuoy(quint32 type)
|
static bool isBuoy(quint32 type)
|
||||||
@ -156,6 +156,8 @@ public:
|
|||||||
{return (type >= 0x10100 && type < 0x10200);}
|
{return (type >= 0x10100 && type < 0x10200);}
|
||||||
static bool isLabelPoint(quint32 type)
|
static bool isLabelPoint(quint32 type)
|
||||||
{return type == 0x10500;}
|
{return type == 0x10500;}
|
||||||
|
static bool isDHPoint(quint32 type)
|
||||||
|
{return type == 0x10300;}
|
||||||
static bool isMarinePoint(quint32 type)
|
static bool isMarinePoint(quint32 type)
|
||||||
{return type >= 0x10100 && type < 0x10a00;}
|
{return type >= 0x10100 && type < 0x10a00;}
|
||||||
static bool isStyledLine(quint32 type)
|
static bool isStyledLine(quint32 type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user