mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
34 lines
585 B
C++
34 lines
585 B
C++
#ifndef EMPTYMAP_H
|
|
#define EMPTYMAP_H
|
|
|
|
#include "map.h"
|
|
|
|
class EmptyMap : public Map
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EmptyMap(QObject *parent = 0);
|
|
|
|
const QString &name() const {return _name;}
|
|
|
|
QRectF bounds() const;
|
|
qreal resolution(const QPointF &p) const;
|
|
|
|
qreal zoom() const {return _scale;}
|
|
qreal zoomFit(const QSize &size, const QRectF &br);
|
|
qreal zoomIn();
|
|
qreal zoomOut();
|
|
|
|
QPointF ll2xy(const Coordinates &c) const;
|
|
Coordinates xy2ll(const QPointF &p) const;
|
|
|
|
void draw(QPainter *painter, const QRectF &rect);
|
|
|
|
private:
|
|
QString _name;
|
|
qreal _scale;
|
|
};
|
|
|
|
#endif // EMPTYMAP_H
|