#include <simgear/scene/model/CheckSceneryVisitor.hxx>
#include <simgear/bvh/BVHNode.hxx>
#include <simgear/bvh/BVHLineSegmentVisitor.hxx>
+#include <simgear/structure/commands.hxx>
#include <Viewer/renderer.hxx>
#include <Main/fg_props.hxx>
+#include <GUI/MouseCursor.hxx>
#include "tilemgr.hxx"
#include "scenery.hxx"
class FGGroundPickCallback : public SGPickCallback {
public:
- virtual bool buttonPressed(int button, const Info& info)
+ FGGroundPickCallback() : SGPickCallback(PriorityScenery)
+ { }
+
+ virtual bool buttonPressed( int button,
+ const osgGA::GUIEventAdapter&,
+ const Info& info )
{
// only on left mouse button
if (button != 0)
void FGScenery::init() {
// Scene graph root
scene_graph = new osg::Group;
- scene_graph->setName( "Scene" );
+ scene_graph->setName( "FGScenery" );
// Terrain branch
terrain_branch = new osg::Group;