1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Some more ENC objects to render

This commit is contained in:
Martin Tůma 2022-11-10 09:43:14 +01:00
parent 8b039cb9a7
commit e4847ac243
4 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#define CATHAF 30
#define CATLMK 35
#define CATMOR 40
#define CATTRK 54
#define CATREA 56
#define CATWRK 71
#define DRVAL1 87

View File

@ -442,6 +442,8 @@ MapData::Attr MapData::lineAttr(const ISO8211::Record &r, uint OBJL)
if ((OBJL == DEPCNT && key == VALDCO)
|| (OBJL == LNDELV && key == ELEVAT))
label = av.at(1).toString();
if (OBJL == RECTRC && key == CATTRK)
subtype = av.at(1).toString().toUInt();
}
return Attr(subtype, label);

View File

@ -44,6 +44,7 @@
#define PIPSOL 94
#define PONTON 95
#define RAILWY 106
#define RECTRC 109
#define RESARE 112
#define RIVERS 114
#define ROADWY 116

View File

@ -69,6 +69,7 @@ void Style::defaultPolygonStyle()
void Style::defaultLineStyle()
{
_lines[TYPE(BUISGL)] = Line(QPen(QColor("#966118"), 1.5));
_lines[TYPE(DEPCNT)] = Line(QPen(QColor("#659aef"), 1, Qt::SolidLine));
_lines[TYPE(DEPCNT)].setTextColor(QColor("#558adf"));
_lines[TYPE(DEPCNT)].setTextFontSize(Small);
@ -94,6 +95,8 @@ void Style::defaultLineStyle()
_lines[TYPE(ROADWY)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
_lines[TYPE(GATCON)] = Line(QPen(QColor("#000000"), 2, Qt::SolidLine));
_lines[TYPE(TSELNE)] = Line(QPen(QColor("#80fcb4fc"), 4, Qt::SolidLine));
_lines[SUBTYPE(RECTRC, 1)] = Line(QPen(QColor("#000000"), 0, Qt::SolidLine));
_lines[SUBTYPE(RECTRC, 2)] = Line(QPen(QColor("#000000"), 0, Qt::DashLine));
}
void Style::defaultPointStyle()