2 #ifndef __FG_RENDERER_HXX
3 #define __FG_RENDERER_HXX 1
5 #include <simgear/scene/util/SGPickCallback.hxx>
6 #include <simgear/props/props.hxx>
7 #include <simgear/timing/timestamp.hxx>
19 class GUIEventAdapter;
52 void resize(int width, int height );
56 /** Just pick into the scene and return the pick callbacks on the way ...
58 bool pick( std::vector<SGSceneryPick>& pickList,
59 const osgGA::GUIEventAdapter* ea );
61 /** Get and set the OSG Viewer object, if any.
63 osgViewer::Viewer* getViewer() { return viewer.get(); }
64 const osgViewer::Viewer* getViewer() const { return viewer.get(); }
65 void setViewer(osgViewer::Viewer* viewer);
66 /** Get and set the manipulator object, if any.
68 flightgear::FGEventHandler* getEventHandler() { return eventHandler.get(); }
69 const flightgear::FGEventHandler* getEventHandler() const { return eventHandler.get(); }
70 void setEventHandler(flightgear::FGEventHandler* manipulator);
72 /** Add a top level camera.
74 void addCamera(osg::Camera* camera, bool useSceneData);
77 osg::ref_ptr<osgViewer::Viewer> viewer;
78 osg::ref_ptr<flightgear::FGEventHandler> eventHandler;
79 SGPropertyNode_ptr _scenery_loaded,_scenery_override;
80 SGPropertyNode_ptr _skyblend, _splash_alpha;
81 SGPropertyNode_ptr _point_sprites, _enhanced_lighting, _distance_attenuation;
82 SGPropertyNode_ptr _textures;
83 SGPropertyNode_ptr _cloud_status, _visibility_m;
84 SGPropertyNode_ptr _xsize, _ysize;
85 SGPropertyNode_ptr _panel_hotspots, _sim_delta_sec, _horizon_effect, _altitude_ft;
86 SGPropertyNode_ptr _virtual_cockpit;
87 SGTimeStamp _splash_time;
90 bool fgDumpSceneGraphToFile(const char* filename);
91 bool fgDumpTerrainBranchToFile(const char* filename);
95 bool printVisibleSceneInfo(FGRenderer* renderer);