mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-14 02:57:45 +01:00
Fixed broken sector lights rendering after recent code changes
This commit is contained in:
parent
fdd5d46c03
commit
a9572d05fe
@ -226,7 +226,7 @@ static QRectF lightRect(const QPointF &pos, double range)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawSectorLights(QPainter *painter,
|
void RasterTile::drawSectorLights(QPainter *painter,
|
||||||
const QMap<Coordinates, SectorLight> &lights) const
|
const QMultiMap<Coordinates, SectorLight> &lights) const
|
||||||
{
|
{
|
||||||
for (auto it = lights.cbegin(); it != lights.cend(); ++it) {
|
for (auto it = lights.cbegin(); it != lights.cend(); ++it) {
|
||||||
const SectorLight &l = it.value();
|
const SectorLight &l = it.value();
|
||||||
@ -264,7 +264,7 @@ void RasterTile::drawSectorLights(QPainter *painter,
|
|||||||
|
|
||||||
void RasterTile::processPoints(const QList<Data::Point> &points,
|
void RasterTile::processPoints(const QList<Data::Point> &points,
|
||||||
QList<TextItem*> &textItems, QList<TextItem*> &lightItems,
|
QList<TextItem*> &textItems, QList<TextItem*> &lightItems,
|
||||||
QMap<Coordinates, SectorLight> §orLights, bool overZoom) const
|
QMultiMap<Coordinates, SectorLight> §orLights, bool overZoom) const
|
||||||
{
|
{
|
||||||
QMap<Coordinates, Style::Color> lights;
|
QMap<Coordinates, Style::Color> lights;
|
||||||
QSet<Coordinates> sigs;
|
QSet<Coordinates> sigs;
|
||||||
@ -356,7 +356,7 @@ void RasterTile::drawLevels(QPainter *painter, const QList<Level> &levels)
|
|||||||
{
|
{
|
||||||
for (int i = levels.size() - 1; i >= 0; i--) {
|
for (int i = levels.size() - 1; i >= 0; i--) {
|
||||||
QList<TextItem*> textItems, lightItems;
|
QList<TextItem*> textItems, lightItems;
|
||||||
QMap<Coordinates, SectorLight> sectorLights;
|
QMultiMap<Coordinates, SectorLight> sectorLights;
|
||||||
const Level &l = levels.at(i);
|
const Level &l = levels.at(i);
|
||||||
|
|
||||||
processPoints(l.points, textItems, lightItems, sectorLights, l.overZoom);
|
processPoints(l.points, textItems, lightItems, sectorLights, l.overZoom);
|
||||||
|
@ -69,7 +69,7 @@ private:
|
|||||||
QPointF centroid(const QVector<Coordinates> &polygon) const;
|
QPointF centroid(const QVector<Coordinates> &polygon) const;
|
||||||
void processPoints(const QList<Data::Point> &points,
|
void processPoints(const QList<Data::Point> &points,
|
||||||
QList<TextItem*> &textItems, QList<TextItem*> &lightItems,
|
QList<TextItem*> &textItems, QList<TextItem*> &lightItems,
|
||||||
QMap<Coordinates, SectorLight> §orLights, bool overZoom) const;
|
QMultiMap<Coordinates, SectorLight> §orLights, bool overZoom) const;
|
||||||
void processLines(const QList<Data::Line> &lines,
|
void processLines(const QList<Data::Line> &lines,
|
||||||
QList<TextItem*> &textItems) const;
|
QList<TextItem*> &textItems) const;
|
||||||
void drawArrows(QPainter *painter, const QList<Data::Point> &points) const;
|
void drawArrows(QPainter *painter, const QList<Data::Point> &points) const;
|
||||||
@ -77,7 +77,7 @@ private:
|
|||||||
void drawLines(QPainter *painter, const QList<Data::Line> &lines) const;
|
void drawLines(QPainter *painter, const QList<Data::Line> &lines) const;
|
||||||
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems) const;
|
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems) const;
|
||||||
void drawSectorLights(QPainter *painter,
|
void drawSectorLights(QPainter *painter,
|
||||||
const QMap<Coordinates, SectorLight> &lights) const;
|
const QMultiMap<Coordinates, SectorLight> &lights) const;
|
||||||
bool showLabel(const QImage *img, int type) const;
|
bool showLabel(const QImage *img, int type) const;
|
||||||
void drawLevels(QPainter *painter, const QList<Level> &levels);
|
void drawLevels(QPainter *painter, const QList<Level> &levels);
|
||||||
QList<Level> fetchLevels();
|
QList<Level> fetchLevels();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user