mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-25 16:04:23 +02:00
Added initial map support part #2
This commit is contained in:
21
src/track.h
21
src/track.h
@ -8,6 +8,7 @@
|
||||
#include <QPrinter>
|
||||
#include "poi.h"
|
||||
#include "gpx.h"
|
||||
#include "map.h"
|
||||
#include "colorshop.h"
|
||||
|
||||
|
||||
@ -23,29 +24,45 @@ public:
|
||||
~Track();
|
||||
|
||||
void loadGPX(const GPX &gpx);
|
||||
void loadPOI(const POI &poi);
|
||||
|
||||
void loadPOI(const POI &poi);
|
||||
void clearPOI();
|
||||
void clear();
|
||||
|
||||
void setMap(Map *map);
|
||||
|
||||
void plot(QPainter *painter, const QRectF &target);
|
||||
enum QPrinter::Orientation orientation() const;
|
||||
|
||||
public slots:
|
||||
void movePositionMarker(qreal val);
|
||||
|
||||
private slots:
|
||||
void redraw();
|
||||
|
||||
private:
|
||||
QTransform transform() const;
|
||||
qreal trackScale() const;
|
||||
qreal mapScale() const;
|
||||
void rescale(qreal scale);
|
||||
|
||||
void showMarkers(bool show);
|
||||
void setTrackLineWidth(qreal width);
|
||||
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
void drawBackground(QPainter *painter, const QRectF &rect);
|
||||
|
||||
QGraphicsScene *_scene;
|
||||
QList<QVector<QPointF> > _tracks;
|
||||
QList<QGraphicsPathItem*> _trackPaths;
|
||||
QList<MarkerItem*> _markers;
|
||||
QHash<Entry, POIItem*> _pois;
|
||||
Map *_map;
|
||||
|
||||
ColorShop _colorShop;
|
||||
qreal _maxLen;
|
||||
|
||||
qreal _scale;
|
||||
int _zoom;
|
||||
};
|
||||
|
||||
#endif // TRACK_H
|
||||
|
Reference in New Issue
Block a user