Skip to content
Permalink
Browse files

renamed flytoextenthandler to controlshandler

  • Loading branch information
Marco Bernasocchi authored and pka committed Jul 5, 2011
1 parent 1de6501 commit 0dfd64ed267735cad5689e4f7cfd607770e31847
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/plugins/globe/globe_plugin.cpp
  2. +2 −2 src/plugins/globe/globe_plugin.h
@@ -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;

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

0 comments on commit 0dfd64e

Please sign in to comment.
You can’t perform that action at this time.