All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MapCameraAnimationOptions.h
1 #pragma once
2 
3 #include "MapCamera.h"
4 #include "Types.h"
5 
6 namespace Eegeo
7 {
8  namespace Camera
9  {
10  namespace MapCamera
11  {
13  {
14  public:
16  double durationSeconds,
17  double preferredAnimationSpeed,
18  double minDuration,
19  double maxDuration,
20  double snapDistanceThreshold,
21  bool hasExplicitDuration,
22  bool snapIfDistanceExceedsThreshold,
23  bool interruptByGestureAllowed,
24  bool interruptByApiAllowed
25  );
26 
27  double GetDurationSeconds() const { return m_durationSeconds; }
28  double GetPreferredAnimationSpeed() const { return m_preferredAnimationSpeed; }
29  double GetMinDuration() const { return m_minDuration; }
30  double GetMaxDuration() const { return m_maxDuration; }
31  double GetSnapDistanceThreshold() const { return m_snapDistanceThreshold; }
32 
33  bool HasExplicitDuration() const { return m_hasExplicitDuration; }
34  bool IsSnapIfDistanceExceedsThreshold() const { return m_snapIfDistanceExceedsThreshold; }
35  bool IsInterruptByGestureAllowed() const { return m_interruptByGestureAllowed; }
36  bool IsInterruptByApiAllowed() const { return m_interruptByApiAllowed; }
37 
38  private:
39 
40  double m_durationSeconds;
41  double m_preferredAnimationSpeed;
42  double m_minDuration;
43  double m_maxDuration;
44  double m_snapDistanceThreshold;
45  bool m_hasExplicitDuration;
46  bool m_snapIfDistanceExceedsThreshold;
47  bool m_interruptByGestureAllowed;
48  bool m_interruptByApiAllowed;
49  };
50  }
51  }
52 }