mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
renamed flytoextenthandler to controlshandler
This commit is contained in:
parent
1de6501156
commit
0dfd64ed26
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user