5 #include "ScreenProperties.h"
6 #include "CameraState.h"
7 #include "MapCameraEvents.h"
9 #include "MapCameraPosition.h"
10 #include "MapCameraAnimationOptions.h"
11 #include "MapCameraUpdate.h"
12 #include "MapCameraGestureState.h"
36 void SetUsingCustomStreamingCamera(
bool usingCustomStreamingCamera);
38 bool IsUsingCustomStreamingCamera()
const {
return m_isUsingCustomStreamingCamera; }
40 void SetUsingCustomRenderCamera(
bool usingCustomRenderCamera);
42 bool IsUsingCustomRenderCamera()
const {
return m_isUsingCustomRenderCamera; }
55 void SetAnimationState(
58 double animationDuration,
59 bool isInterruptByGestureAllowed,
60 bool isInterruptByApiAllowed,
61 bool isAnimationSnapToTarget
64 void ClearAnimationState();
66 void SetIndoorMapEntryInitialDistance(
double indoorMapEntryInitialDistance);
67 double GetIndoorMapEntryInitialDistance()
const {
return m_indoorMapEntryInitialDistance; }
69 const MapCameraPosition& GetMapCameraPosition()
const {
return m_mapCameraPosition;}
72 int GetAnimationId()
const {
return m_animationId; }
73 double GetAnimationDuration()
const {
return m_animationDuration; }
75 bool IsInterruptAnimationByGestureAllowed()
const {
return m_isInterruptAnimationByGestureAllowed; }
76 bool IsInterruptByApiAllowed()
const {
return m_isInterruptByApiAllowed; }
77 bool IsAnimationSnapToTarget()
const {
return m_isAnimationSnapToTarget; }
78 bool IsAnimating()
const {
return m_animationId != InvalidMapCameraAnimationId; }
80 void SetIndoorRestriction(
bool indoorRestrictionApplied);
81 bool IsIndoorRestrictionEnabled()
const {
return m_isIndoorRestrictionApplied; }
83 void SetVerticallyLocked(
bool isVerticallyLocked);
84 bool IsVerticallyLocked()
const {
return m_isVerticallyLocked; }
88 void SetUpdateStateInternal(
94 void RaiseChangedEvent(
const MapCameraOperation::Type operation);
96 void RaiseGestureEvents(
bool prevGestureActive,
97 bool newGestureActive,
99 MapCameraOperation::Type start,
100 MapCameraOperation::Type end,
101 MapCameraOperation::Type change);
111 double m_animationDuration;
112 bool m_isInterruptAnimationByGestureAllowed;
113 bool m_isInterruptByApiAllowed;
114 bool m_isAnimationSnapToTarget;
115 double m_indoorMapEntryInitialDistance;
117 bool m_isUsingCustomStreamingCamera;
118 bool m_isUsingCustomRenderCamera;
119 bool m_isIndoorRestrictionApplied;
120 bool m_isVerticallyLocked;