Skip to content

Commit 0dfd64e

Browse files
Marco Bernasocchipka
authored andcommitted
renamed flytoextenthandler to controlshandler
1 parent 1de6501 commit 0dfd64e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/plugins/globe/globe_plugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ void GlobePlugin::run()
147147
mRootNode->addChild( mControlCanvas );
148148
setupControls();
149149

150-
// add our fly-to handler
151-
viewer.addEventHandler(new FlyToExtentHandler( manip, mQGisIface ));
150+
// add our controls handler
151+
viewer.addEventHandler(new ControlsHandler( manip, mQGisIface ));
152152

153153
// add some stock OSG handlers:
154154
viewer.addEventHandler(new osgViewer::StatsHandler());
@@ -535,7 +535,7 @@ void GlobePlugin::copyFolder(QString sourceFolder, QString destFolder)
535535
}
536536
}
537537

538-
bool FlyToExtentHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa )
538+
bool ControlsHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa )
539539
{
540540
float deg = 3.14159 / 180;
541541

src/plugins/globe/globe_plugin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ class GlobePlugin : public QObject, public QgisPlugin
110110
osgEarthUtil::ObjectPlacer* mObjectPlacer;
111111
};
112112

113-
class FlyToExtentHandler : public osgGA::GUIEventHandler
113+
class ControlsHandler : public osgGA::GUIEventHandler
114114
{
115115
public:
116-
FlyToExtentHandler( osgEarthUtil::EarthManipulator* manip, QgisInterface *qGisIface ) : _manip(manip), mQGisIface(qGisIface) { }
116+
ControlsHandler( osgEarthUtil::EarthManipulator* manip, QgisInterface *qGisIface ) : _manip(manip), mQGisIface(qGisIface) { }
117117

118118
bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa );
119119

0 commit comments

Comments
 (0)