All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TransportPositionerPointOnGraph.h
1 #pragma once
2 
3 #include "Transport.h"
4 #include "VectorMath.h"
5 #include "TransportDirectedEdgeId.h"
6 #include "TransportWayId.h"
7 
8 
9 namespace Eegeo
10 {
11  namespace Transport
12  {
13 
15  {
16  public:
18  : m_isMatched(false)
19  , m_isWayReversed(false)
20  , m_directedEdgeId(TransportDirectedEdgeId())
21  , m_transportWayId(TransportWayId())
22  , m_parameterizedPointOnWay(0.0)
23  , m_pointOnWay(dv3::Zero())
24  , m_directionOnWay(dv3::Zero())
25  , m_headingOnWayDegrees(0.0)
26  {
27  }
28 
30  bool isMatched,
31  bool isWayReversed,
32  const TransportDirectedEdgeId& directedEdgeId,
33  const TransportWayId& transportWayId,
34  double parameterizedPointOnWay,
35  const dv3& pointOnWay,
36  const dv3& directionOnWay,
37  double headingOnWayDegrees
38  )
39  : m_isMatched(isMatched)
40  , m_isWayReversed(isWayReversed)
41  , m_directedEdgeId(directedEdgeId)
42  , m_transportWayId(transportWayId)
43  , m_parameterizedPointOnWay(parameterizedPointOnWay)
44  , m_pointOnWay(pointOnWay)
45  , m_directionOnWay(directionOnWay)
46  , m_headingOnWayDegrees(headingOnWayDegrees)
47  {
48 
49  }
50 
51  bool IsMatched() const { return m_isMatched; }
52  bool IsWayReversed() const { return m_isWayReversed; }
53  const TransportDirectedEdgeId& GetDirectedEdgeId() const { return m_directedEdgeId; }
54  const Transport::TransportWayId& GetTransportWayId() const { return m_transportWayId; }
55  double GetParameterizedPointOnWay() const { return m_parameterizedPointOnWay; }
56  const dv3& GetPointOnWay() const { return m_pointOnWay; }
57  const dv3& GetDirectionOnWay() const { return m_directionOnWay; }
58  double GetHeadingOnWayDegrees() const { return m_headingOnWayDegrees; }
59 
60  private:
61  bool m_isMatched;
62  bool m_isWayReversed;
63  TransportDirectedEdgeId m_directedEdgeId;
64  TransportWayId m_transportWayId;
65  double m_parameterizedPointOnWay;
66  dv3 m_pointOnWay;
67  dv3 m_directionOnWay;
68  double m_headingOnWayDegrees;
69  };
70 
71  }
72 }