1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-16 20:04:23 +02:00

Various ENC render style enhancements

This commit is contained in:
2022-12-08 00:29:39 +01:00
parent ff2dd6cdec
commit d33716e3af
10 changed files with 147 additions and 81 deletions

View File

@ -15,21 +15,23 @@ class MapData
public:
class Poly {
public:
Poly(uint type, const Polygon &path, const QByteArray &param);
Poly(uint type, const Polygon &path, const QVector<QByteArray> &params);
RectC bounds() const {return _path.boundingRect();}
const Polygon &path() const {return _path;}
uint type() const {return _type;}
const QVariant &param() const {return _param;}
private:
uint _type;
Polygon _path;
QVariant _param;
};
class Line {
public:
Line(uint type, const QVector<Coordinates> &path, const QString &label,
const QByteArray &param);
const QVector<QByteArray> &params);
RectC bounds() const;
const QVector<Coordinates> &path() const {return _path;}
@ -45,11 +47,12 @@ public:
class Point {
public:
Point(uint type, const Coordinates &c, const QString &label,
const QByteArray &param);
const QVector<QByteArray> &params);
const Coordinates &pos() const {return _pos;}
uint type() const {return _type;}
const QString &label() const {return _label;}
const QVariant &param() const {return _param;}
bool operator<(const Point &other) const
{return _id < other._id;}
@ -59,6 +62,7 @@ public:
Coordinates _pos;
QString _label;
quint64 _id;
QVariant _param;
};
MapData(const QString &path);
@ -116,17 +120,18 @@ private:
class Attr {
public:
Attr() : _subtype(0) {}
Attr(uint subtype, const QString &label, const QByteArray &param)
: _subtype(subtype), _label(label), _param(param) {}
Attr(uint subtype, const QString &label,
const QVector<QByteArray> &params)
: _subtype(subtype), _label(label), _params(params) {}
unsigned subtype() const {return _subtype;}
const QString &label() const {return _label;}
const QByteArray &param() const {return _param;}
const QVector<QByteArray> &params() const {return _params;}
private:
unsigned _subtype;
QString _label;
QByteArray _param;
QVector<QByteArray> _params;
};
struct Sounding {