1 #ifndef ELEVATIONGRAPH_H
2 #define ELEVATIONGRAPH_H
6 class ElevationGraphItem
;
8 class ElevationGraph
: public GraphTab
13 ElevationGraph(QWidget
*parent
= 0);
16 QString
label() const {return tr("Elevation");}
17 QList
<GraphItem
*> loadData(const Data
&data
);
19 void setUnits(enum Units units
);
20 void showTracks(bool show
);
21 void showRoutes(bool show
);
24 enum PathType
{TrackPath
, RoutePath
};
29 qreal
descent() const;
31 void setYUnits(Units units
);
34 GraphItem
*loadGraph(const Graph
&graph
, PathType type
, const QColor
&color
,
36 void showItems(const QList
<ElevationGraphItem
*> &list
, bool show
);
38 qreal _trackAscent
, _trackDescent
;
39 qreal _routeAscent
, _routeDescent
;
40 qreal _trackMax
, _routeMax
;
41 qreal _trackMin
, _routeMin
;
43 bool _showTracks
, _showRoutes
;
44 QList
<ElevationGraphItem
*> _tracks
, _routes
;
47 #endif // ELEVATIONGRAPH_H