All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MapCameraGestureHandler.h
1 #pragma once
2 
3 #include "MapCamera.h"
4 #include "IGestureHandler.h"
5 #include "Types.h"
6 #include "EegeoRootDeclarations.h"
7 
8 namespace Eegeo
9 {
10  namespace Camera
11  {
12  namespace MapCamera
13  {
15  {
16  public:
18  IMapCameraTransitionGestureInterruptEvent& mapCameraTransitionGestureInterruptEvent,
19  IndoorOutdoorModalCameraController& indoorOutdoorModalCameraController,
20  ITouchController& outdoorGlobeCameraTouchController,
21  ITouchController& indoorGlobeCameraTouchController
22  );
23 
24  void OnResetAllGestures();
25 
26  bool OnTouchRotate(const AppInterface::RotateData& data);
27  bool OnTouchRotate_Start(const AppInterface::RotateData& data);
28  bool OnTouchRotate_End(const AppInterface::RotateData& data);
29 
30  bool OnTouchPinch(const AppInterface::PinchData& data);
31  bool OnTouchPinch_Start(const AppInterface::PinchData& data);
32  bool OnTouchPinch_End(const AppInterface::PinchData& data);
33 
34  bool OnTouchPan(const AppInterface::PanData& data);
35  bool OnTouchPan_Start(const AppInterface::PanData& data);
36  bool OnTouchPan_End(const AppInterface::PanData& data);
37 
38  bool OnTouchTap(const AppInterface::TapData& data);
39  bool OnTouchDoubleTap(const AppInterface::TapData& data);
40 
41  bool OnTouchDown(const AppInterface::TouchData& data);
42  bool OnTouchMove(const AppInterface::TouchData& data);
43  bool OnTouchUp(const AppInterface::TouchData& data);
44 
45  bool OnZoom(const AppInterface::ZoomData& data);
46 
47  bool OnTiltStart(const AppInterface::TiltData& data);
48  bool OnTiltEnd(const AppInterface::TiltData& data);
49  bool OnTilt(const AppInterface::TiltData& data);
50 
51 
52  private:
53 
54  bool CanAcceptInput() const;
55 
56  bool TryAllowGesture();
57 
58  ITouchController& GetCurrentCameraTouchController();
59 
60  IMapCameraTransitionGestureInterruptEvent& m_mapCameraTransitionGestureInterruptEvent;
61  IndoorOutdoorModalCameraController& m_indoorOutdoorModalCameraController;
62  ITouchController& m_outdoorGlobeCameraTouchController;
63  ITouchController& m_indoorGlobeCameraTouchController;
64 
65  };
66  }
67  }
68 }