2016-02-11 20:58:52 +01:00
|
|
|
#ifndef TRACKPOINT_H
|
|
|
|
#define TRACKPOINT_H
|
|
|
|
|
|
|
|
#include <QPointF>
|
|
|
|
#include <QDateTime>
|
2016-03-17 00:50:20 +01:00
|
|
|
#include <cmath>
|
2016-02-11 20:58:52 +01:00
|
|
|
|
2016-04-01 09:41:52 +02:00
|
|
|
class Trackpoint
|
2016-02-11 20:58:52 +01:00
|
|
|
{
|
2016-04-01 09:41:52 +02:00
|
|
|
public:
|
2016-03-21 22:37:55 +01:00
|
|
|
Trackpoint() {
|
|
|
|
elevation = NAN;
|
|
|
|
geoidheight = 0;
|
|
|
|
speed = NAN;
|
|
|
|
heartRate = NAN;
|
|
|
|
}
|
2016-04-01 09:41:52 +02:00
|
|
|
|
|
|
|
bool hasElevation() const {return !std::isnan(elevation);}
|
|
|
|
bool hasSpeed() const {return !std::isnan(speed);}
|
|
|
|
bool hasHeartRate() const {return !std::isnan(heartRate);}
|
|
|
|
|
|
|
|
QPointF coordinates;
|
|
|
|
QDateTime timestamp;
|
|
|
|
qreal elevation;
|
|
|
|
qreal geoidheight;
|
|
|
|
qreal speed;
|
|
|
|
qreal heartRate;
|
2016-02-11 20:58:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRACKPOINT_H
|