diff --git a/src/plugins/globe/globe_plugin.cpp b/src/plugins/globe/globe_plugin.cpp index f0ca1cc880a..88cb5e4751e 100644 --- a/src/plugins/globe/globe_plugin.cpp +++ b/src/plugins/globe/globe_plugin.cpp @@ -147,8 +147,8 @@ void GlobePlugin::run() mRootNode->addChild( mControlCanvas ); setupControls(); - // add our fly-to handler - viewer.addEventHandler(new FlyToExtentHandler( manip, mQGisIface )); + // add our controls handler + viewer.addEventHandler(new ControlsHandler( manip, mQGisIface )); // add some stock OSG handlers: viewer.addEventHandler(new osgViewer::StatsHandler()); @@ -535,7 +535,7 @@ void GlobePlugin::copyFolder(QString sourceFolder, QString destFolder) } } -bool FlyToExtentHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa ) +bool ControlsHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa ) { float deg = 3.14159 / 180; diff --git a/src/plugins/globe/globe_plugin.h b/src/plugins/globe/globe_plugin.h index 33a12560c14..bf0eaa66342 100644 --- a/src/plugins/globe/globe_plugin.h +++ b/src/plugins/globe/globe_plugin.h @@ -110,10 +110,10 @@ class GlobePlugin : public QObject, public QgisPlugin osgEarthUtil::ObjectPlacer* mObjectPlacer; }; -class FlyToExtentHandler : public osgGA::GUIEventHandler +class ControlsHandler : public osgGA::GUIEventHandler { public: - FlyToExtentHandler( osgEarthUtil::EarthManipulator* manip, QgisInterface *qGisIface ) : _manip(manip), mQGisIface(qGisIface) { } + ControlsHandler( osgEarthUtil::EarthManipulator* manip, QgisInterface *qGisIface ) : _manip(manip), mQGisIface(qGisIface) { } bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa );