All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MapCameraZoomLevels.h
1 #pragma once
2 
3 #include "IMapCameraZoomLevels.h"
4 #include "Types.h"
5 #include <vector>
6 
7 namespace Eegeo
8 {
9  namespace Camera
10  {
11  namespace MapCamera
12  {
14  {
15  public:
16 
17  MapCameraZoomLevels(const std::vector<double>& zoomLevelToDistance);
18 
19  double GetMaxZoomLevel() const;
20 
21  double GetDistanceFromZoomLevel(double zoomLevel) const;
22 
23  double GetZoomLevelFromDistance(double distanceToInterest) const;
24 
25  std::vector<double> GetZoomLevelDistances() const;
26  private:
27 
28  int FirstZoomLevelLessThanDistance(double distance) const;
29 
30  std::vector<double> m_zoomLevelToDistance;
31  };
32  }
33  }
34 }