1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/map/tile.h

31 lines
512 B
C
Raw Normal View History

#ifndef TILE_H
#define TILE_H
#include <QPixmap>
#include <QPoint>
2017-11-14 22:15:46 +01:00
#include <QDebug>
class Tile
{
public:
Tile(const QPoint &xy, int zoom)
{_xy = xy; _zoom = zoom;}
int zoom() const {return _zoom;}
const QPoint& xy() const {return _xy;}
QPixmap& pixmap() {return _pixmap;}
private:
int _zoom;
QPoint _xy;
QPixmap _pixmap;
};
2017-11-14 22:15:46 +01:00
inline QDebug operator<<(QDebug dbg, const Tile &tile)
{
dbg.nospace() << "Tile(" << tile.zoom() << ", " << tile.xy() << ")";
return dbg.maybeSpace();
}
#endif // TILE_H