8 class GEMFMap
: public Map
14 GEMFMap(const QString
&fileName
, QObject
*parent
= 0);
17 RectC
llBounds(const Projection
&) {return _bounds
;}
19 int zoom() const {return _zi
;}
20 void setZoom(int zoom
) {_zi
= zoom
;}
21 int zoomFit(const QSize
&size
, const RectC
&rect
);
24 qreal
resolution(const QRectF
&rect
);
26 QPointF
ll2xy(const Coordinates
&c
);
27 Coordinates
xy2ll(const QPointF
&p
);
29 void load(const Projection
&in
, const Projection
&out
, qreal deviceRatio
,
33 void draw(QPainter
*painter
, const QRectF
&rect
, Flags flags
);
35 bool isValid() const {return _valid
;}
36 QString
errorString() const {return _errorString
;}
38 static Map
*create(const QString
&path
, bool *isDir
);
53 Zoom(int level
) : level(level
) {}
55 bool operator==(const Zoom
&other
) const
56 {return level
== other
.level
;}
57 bool operator<(const Zoom
&other
) const
58 {return level
< other
.level
;}
61 QRect
rect(const Zoom
&zoom
) const;
62 bool readHeader(QDataStream
&stream
);
63 bool readRegions(QDataStream
&stream
);
65 qreal
tileSize() const;
66 QByteArray
tileData(const QPoint
&tile
);
67 void drawTile(QPainter
*painter
, QPixmap
&pixmap
, QPointF
&tp
);
69 friend QDebug
operator<<(QDebug dbg
, const Region
®ion
);
70 friend QDebug
operator<<(QDebug dbg
, const Zoom
&zoom
);
84 QDebug
operator<<(QDebug dbg
, const GEMFMap::Region
®ion
);
85 QDebug
operator<<(QDebug dbg
, const GEMFMap::Zoom
&zoom
);