- inline void set_terrain_branch (osg::Group * t) { terrain_branch = t; }
-
- inline osg::Group *get_gnd_lights_root () const {
- return gnd_lights_root.get();
- }
- inline void set_gnd_lights_root (osg::Group *r) {
- gnd_lights_root = r;
- }
-
- inline osg::Group *get_vasi_lights_root () const {
- return vasi_lights_root.get();
- }
- inline void set_vasi_lights_root (osg::Group *r) {
- vasi_lights_root = r;
- }
-
- inline osg::Group *get_rwy_lights_root () const {
- return rwy_lights_root.get();
- }
- inline void set_rwy_lights_root (osg::Group *r) {
- rwy_lights_root = r;
- }
-
- inline osg::Group *get_taxi_lights_root () const {
- return taxi_lights_root.get();
- }
- inline void set_taxi_lights_root (osg::Group *r) {
- taxi_lights_root = r;
- }
-
- inline osg::Group *get_models_branch () const {
- return models_branch.get();
- }
- inline void set_models_branch (osg::Group *t) {
- models_branch = t;
- }
-
- inline osg::Group *get_aircraft_branch () const {
- return aircraft_branch.get();
- }
- inline void set_aircraft_branch (osg::Group *t) {
- aircraft_branch = t;
- }
-
- void register_placement_transform(SGPlacementTransform *trans);
- void unregister_placement_transform(SGPlacementTransform *trans);
+ osg::Group *get_models_branch () const { return models_branch.get(); }
+ osg::Group *get_aircraft_branch () const { return aircraft_branch.get(); }
+
+ /// Returns true if scenery is avaliable for the given lat, lon position
+ /// within a range of range_m.
+ /// lat and lon are expected to be in degrees.
+ bool scenery_available(const SGGeod& position, double range_m);
+
+ // Static because access to the pager is needed before the rest of
+ // the scenery is initialized.
+ static flightgear::SceneryPager* getPagerSingleton();