Map Matching
pointGPS.h
Go to the documentation of this file.
1 #ifndef POINTGPS_H
2 #define POINTGPS_H
3 
4 #include "emissionprobability.h"
5 #include "point.h"
6 #include <vector>
7 
8 #define ALT_DEFAULT 0.0
9 class PointGPS : public Point {
10 public:
15  PointGPS(double x, double y, unsigned int timestamp)
16  : Point(x, y)
18  , m_timeStamp(timestamp)
19  {
20  }
21 
26  PointGPS(double x, double y, float altitude, unsigned int timestamp)
27  : Point(x, y)
28  , m_altitude(altitude)
29  , m_timeStamp(timestamp)
30  {
31  }
32 
33  void addEmissionProbability(long roadId, double distance);
34  void updateProbability();
35 
36  std::string infos() const;
37 
38  // accessors
39  unsigned int timeStamp() const { return m_timeStamp; }
40  float altitude() const { return m_altitude; }
41 
42  std::vector<EmissionProbability> m_emissionProbability;
43 
44 protected:
45  float m_altitude; // TODO keep ?
46  unsigned int m_timeStamp; // WARNING in second
47 };
48 #endif // POINTGPS_H
std::vector< EmissionProbability > m_emissionProbability
Definition: pointGPS.h:42
Class Point.
#define ALT_DEFAULT
Definition: pointGPS.h:8
PointGPS(double x, double y, unsigned int timestamp)
PointGPS constructor Create a new Point GPS with default altitude.
Definition: pointGPS.h:15
double y() const
Definition: point.cpp:52
void addEmissionProbability(long roadId, double distance)
Definition: pointGPS.cpp:5
double x() const
Definition: point.cpp:75
PointGPS(double x, double y, float altitude, unsigned int timestamp)
PointGPS constructor Create a new Point GPS.
Definition: pointGPS.h:26
float m_altitude
Definition: pointGPS.h:45
unsigned int m_timeStamp
Definition: pointGPS.h:46
unsigned int timeStamp() const
Definition: pointGPS.h:39
std::string infos() const
Definition: pointGPS.cpp:20
The Point class.
Definition: point.h:20
float altitude() const
Definition: pointGPS.h:40
void updateProbability()
Definition: pointGPS.cpp:11