All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CandidateGenerator.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "Streaming.h"
7 #include "Routes.h"
8 #include "MortonKey.h"
9 #include <vector>
10 
11 namespace Eegeo
12 {
13  namespace Routes
14  {
15  namespace Fitting
16  {
17  namespace NavGraphConforming
18  {
20  {
21  public:
23  const NavGraphFittingInfoRepository& roadNavGraphFittingInfoRepository,
24  const NavGraphFittingInfoRepository& railNavGraphFittingInfoRepository,
25  const float maxRadius,
26  const int subDivisions,
27  const bool debugLog);
28 
29  bool GenerateCandidates(const std::vector<LocalRouteVertex>& inputLocalRouteVertices,
30  std::vector<const CandidateSet*>& out_candidates) const;
31 
32 
33 
34  static void DestroyCandidates(const std::vector<const CandidateSet*>& candidateSets);
35  private:
36 
37  bool CreateCandidates(const std::vector<LocalRouteVertex>& inputLocalRouteVertices,
38  std::vector<const CandidateSet*>& out_candidates) const;
39 
40  void SubdivideInput(const std::vector<LocalRouteVertex>& inputLocalRouteVertices, std::vector<LocalRouteVertex>& out_subdividedLocalRouteVertices) const;
41 
42 
43  const Streaming::MortonKey m_key;
44  const float m_maxRadius;
45  const int m_subDivisions;
46  const bool m_debugLog;
47 
48  const NavGraphFittingInfoRepository& m_roadNavGraphFittingInfoRepository;
49  const NavGraphFittingInfoRepository& m_railNavGraphFittingInfoRepository;
50  };
51  }
52  }
53  }
54 }