1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00
GPXSee/src/map/emptymap.h

36 lines
643 B
C
Raw Normal View History

#ifndef EMPTYMAP_H
#define EMPTYMAP_H
#include "osm.h"
2017-12-02 20:28:53 +01:00
#include "map.h"
class EmptyMap : public Map
{
Q_OBJECT
public:
EmptyMap(QObject *parent = 0);
2018-07-13 09:51:41 +02:00
QString name() const {return QString();}
2018-07-13 09:51:41 +02:00
QRectF bounds();
RectC llBounds() {return OSM::BOUNDS;}
qreal resolution(const QRectF &rect);
int zoom() const {return _zoom;}
2018-04-28 22:18:11 +02:00
void setZoom(int zoom) {_zoom = zoom;}
int zoomFit(const QSize &size, const RectC &rect);
int zoomIn();
int zoomOut();
2018-07-13 09:51:41 +02:00
QPointF ll2xy(const Coordinates &c);
Coordinates xy2ll(const QPointF &p);
2018-08-23 20:26:10 +02:00
void draw(QPainter *painter, const QRectF &rect, Flags flags);
private:
int _zoom;
};
#endif // EMPTYMAP_H