renamed flytoextenthandler to controlshandler

This commit is contained in:
Marco Bernasocchi 2010-11-25 19:18:47 +01:00 committed by Pirmin Kalberer
parent 1de6501156
commit 0dfd64ed26
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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 );