All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteViewSegment.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Routes.h"
6 #include "LocalRouteVertex.h"
7 #include "VectorMath.h"
8 
9 namespace Eegeo
10 {
11  namespace Routes
12  {
13  namespace View
14  {
16  {
17  private:
18  LocalRouteVertex m_start;
19  LocalRouteVertex m_end;
20  v3 m_direction;
21  v3 m_startRight;
22  v3 m_endRight;
23  public:
25  const LocalRouteVertex& end,
26  const v3& direction)
27  : m_start(start)
28  , m_end(end)
29  , m_direction(direction)
30  {
31 
32  }
33 
34  const LocalRouteVertex& GetStart() const { return m_start; }
35  const LocalRouteVertex& GetEnd() const { return m_end; }
36  const v3& GetDirection() const { return m_direction; }
37  const v3& GetStartRight() const { return m_startRight; }
38  const v3& GetEndRight() const { return m_endRight; }
39  void SetStartRightVector(const v3& startRight) { m_startRight = startRight; }
40  void SetEndRightVector(const v3& endRight) { m_endRight = endRight; }
41  void SetDirection(const v3& direction) { m_direction = direction; }
42  };
43  }
44  }
45 }