mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-12 22:30:47 +01:00
Fixed function definitions
This commit is contained in:
parent
41e8b7094a
commit
610dd0a009
@ -138,7 +138,7 @@ static void drawArrow(QPainter *painter, const QPolygonF &polygon, uint type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawArrows(QPainter *painter,
|
void RasterTile::drawArrows(QPainter *painter,
|
||||||
const QList<MapData::Point> &points)
|
const QList<MapData::Point> &points) const
|
||||||
{
|
{
|
||||||
for (int i = 0; i < points.size(); i++) {
|
for (int i = 0; i < points.size(); i++) {
|
||||||
const MapData::Point &point = points.at(i);
|
const MapData::Point &point = points.at(i);
|
||||||
@ -152,7 +152,7 @@ void RasterTile::drawArrows(QPainter *painter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawPolygons(QPainter *painter,
|
void RasterTile::drawPolygons(QPainter *painter,
|
||||||
const QList<MapData::Poly> &polygons)
|
const QList<MapData::Poly> &polygons) const
|
||||||
{
|
{
|
||||||
for (int n = 0; n < _style->drawOrder().size(); n++) {
|
for (int n = 0; n < _style->drawOrder().size(); n++) {
|
||||||
for (int i = 0; i < polygons.size(); i++) {
|
for (int i = 0; i < polygons.size(); i++) {
|
||||||
@ -184,7 +184,7 @@ void RasterTile::drawPolygons(QPainter *painter,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines)
|
void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines) const
|
||||||
{
|
{
|
||||||
painter->setBrush(Qt::NoBrush);
|
painter->setBrush(Qt::NoBrush);
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawTextItems(QPainter *painter,
|
void RasterTile::drawTextItems(QPainter *painter,
|
||||||
const QList<TextItem*> &textItems)
|
const QList<TextItem*> &textItems) const
|
||||||
{
|
{
|
||||||
QRectF rect(_rect);
|
QRectF rect(_rect);
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ void RasterTile::drawTextItems(QPainter *painter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterTile::drawSectorLights(QPainter *painter,
|
void RasterTile::drawSectorLights(QPainter *painter,
|
||||||
const QList<SectorLight> &lights)
|
const QList<SectorLight> &lights) const
|
||||||
{
|
{
|
||||||
for (int i = 0; i < lights.size(); i++) {
|
for (int i = 0; i < lights.size(); i++) {
|
||||||
const SectorLight &l = lights.at(i);
|
const SectorLight &l = lights.at(i);
|
||||||
|
@ -36,7 +36,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
struct SectorLight
|
struct SectorLight
|
||||||
{
|
{
|
||||||
SectorLight(const Coordinates pos, Style::Color color, uint visibility,
|
SectorLight(const Coordinates &pos, Style::Color color, uint visibility,
|
||||||
double start, double end) : pos(pos), color(color),
|
double start, double end) : pos(pos), color(color),
|
||||||
visibility(visibility), start(start), end(end) {}
|
visibility(visibility), start(start), end(end) {}
|
||||||
|
|
||||||
@ -64,13 +64,11 @@ private:
|
|||||||
QList<SectorLight> §orLights);
|
QList<SectorLight> §orLights);
|
||||||
void processLines(const QList<MapData::Line> &lines,
|
void processLines(const QList<MapData::Line> &lines,
|
||||||
QList<TextItem*> &textItems);
|
QList<TextItem*> &textItems);
|
||||||
void drawBitmapPath(QPainter *painter, const QImage &img,
|
void drawArrows(QPainter *painter, const QList<MapData::Point> &points) const;
|
||||||
const Polygon &polygon);
|
void drawPolygons(QPainter *painter, const QList<MapData::Poly> &polygons) const;
|
||||||
void drawArrows(QPainter *painter, const QList<MapData::Point> &points);
|
void drawLines(QPainter *painter, const QList<MapData::Line> &lines) const;
|
||||||
void drawPolygons(QPainter *painter, const QList<MapData::Poly> &polygons);
|
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems) const;
|
||||||
void drawLines(QPainter *painter, const QList<MapData::Line> &lines);
|
void drawSectorLights(QPainter *painter, const QList<SectorLight> &lights) const;
|
||||||
void drawTextItems(QPainter *painter, const QList<TextItem*> &textItems);
|
|
||||||
void drawSectorLights(QPainter *painter, const QList<SectorLight> &lights);
|
|
||||||
|
|
||||||
static bool polyCb(MapData *data, void *context);
|
static bool polyCb(MapData *data, void *context);
|
||||||
static bool pointCb(MapData *data, void *context);
|
static bool pointCb(MapData *data, void *context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user