All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LocalRouteVertex.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "VectorMath.h"
6 #include "Routes.h"
7 #include "RouteVertexClassification.h"
8 
9 #include <string>
10 
11 namespace Eegeo
12 {
13  namespace Routes
14  {
16  {
17  Eegeo::v3 m_localPosition;
18  std::string m_indoorMapId;
19  int m_indoorMapFloorId;
20  Eegeo::v4 m_color;
21  float m_halfWidth;
22  float m_speed;
23  RouteVertexClassification m_classification;
24  bool m_isFitted;
25  bool m_isInCentralCell;
26  double m_routeParam;
27  const Fitting::NavGraphRoadFittingInfo* m_roadFittingInfo;
28 
29  public:
30 
31 
32 
34  : m_localPosition(Eegeo::v3::Zero())
35  , m_indoorMapFloorId(0)
36  , m_color(Eegeo::v4::Zero())
37  , m_halfWidth(0.f)
38  , m_speed(0.f)
39  , m_classification(Pedestrian)
40  , m_isFitted(false)
41  , m_isInCentralCell(false)
42  , m_routeParam(0.0)
43  , m_roadFittingInfo(NULL)
44  {
45 
46  }
47 
48  LocalRouteVertex(const Eegeo::v3& localPosition,
49  const std::string& indoorMapId,
50  int indoorMapFloorId,
51  const Eegeo::v4& color,
52  float halfWidth,
53  float speed,
54  RouteVertexClassification classification,
55  bool isFitted,
56  bool isInCentralCell,
57  double routeParam,
58  const Fitting::NavGraphRoadFittingInfo* roadFittingInfo)
59  :m_localPosition(localPosition)
60  , m_indoorMapId(indoorMapId)
61  , m_indoorMapFloorId(indoorMapFloorId)
62  ,m_color(color)
63  ,m_halfWidth(halfWidth)
64  ,m_speed(speed)
65  ,m_classification(classification)
66  , m_isFitted(isFitted)
67  , m_isInCentralCell(isInCentralCell)
68  , m_routeParam(routeParam)
69  , m_roadFittingInfo(roadFittingInfo)
70  {
71 
72  }
73 
74  const Eegeo::v3& GetPosition() const { return m_localPosition; }
75  const Eegeo::v4& GetColor() const { return m_color; }
76  float GetHalfWidth() const { return m_halfWidth; }
77  float GetSpeed() const { return m_speed; }
78  RouteVertexClassification GetRouteVertexClassification() const { return m_classification; }
79  bool IsFitted() const { return m_isFitted; }
80  bool IsInCentralCell() const { return m_isInCentralCell; }
81  double GetRouteParam() const { return m_routeParam; }
82  const Fitting::NavGraphRoadFittingInfo* GetRoadFittingInfo() const { return m_roadFittingInfo; }
83  const std::string& GetIndoorMapId() const { return m_indoorMapId; }
84  int GetIndoorMapFloorId() const { return m_indoorMapFloorId; }
85  };
86  }
87 }