Updraft
1.0
Open source glider flight visualisation tool.
|
00001 #ifndef UPDRAFT_SRC_CORE_MAPMANIPULATOR_H_ 00002 #define UPDRAFT_SRC_CORE_MAPMANIPULATOR_H_ 00003 00004 #include <osgEarthUtil/EarthManipulator> 00005 #include <QObject> 00006 00007 namespace Updraft { 00008 00009 class SettingInterface; 00010 00011 namespace Core { 00012 00014 class MapManipulator: public QObject, public osgEarth::Util::EarthManipulator { 00015 Q_OBJECT 00016 00017 public: 00018 MapManipulator(); 00019 ~MapManipulator(); 00020 00023 void resetNorth(double duration); 00024 00027 void untilt(double duration); 00028 00031 void updateCameraProjection(); 00032 00033 private slots: 00035 void mouseZoomSensitivityChanged(); 00036 00037 private: 00039 SettingInterface* mouseZoomSensitivity; 00040 00043 void bindKeyboardEvents(Settings* settings); 00044 00047 void bindMouseEvents(Settings* settings); 00048 }; 00049 00050 } // End namespace Core 00051 } // End namespace Updraft 00052 00053 #endif // UPDRAFT_SRC_CORE_MAPMANIPULATOR_H_