- SGVec3d& nearestHit, bool exact = false);
-
- const SGVec3d& get_center() const { return center; }
- void set_center( const SGVec3d& p );
-
- inline ssgRoot *get_scene_graph () const { return scene_graph; }
- inline void set_scene_graph (ssgRoot * s) { scene_graph = s; }
-
- inline ssgBranch *get_terrain_branch () const { return terrain_branch; }
- inline void set_terrain_branch (ssgBranch * t) { terrain_branch = t; }
-
- inline ssgRoot *get_gnd_lights_root () const {
- return gnd_lights_root;
- }
- inline void set_gnd_lights_root (ssgRoot *r) {
- gnd_lights_root = r;
- }
-
- inline ssgRoot *get_vasi_lights_root () const {
- return vasi_lights_root;
- }
- inline void set_vasi_lights_root (ssgRoot *r) {
- vasi_lights_root = r;
- }
-
- inline ssgRoot *get_rwy_lights_root () const {
- return rwy_lights_root;
- }
- inline void set_rwy_lights_root (ssgRoot *r) {
- rwy_lights_root = r;
- }
-
- inline ssgRoot *get_taxi_lights_root () const {
- return taxi_lights_root;
- }
- inline void set_taxi_lights_root (ssgRoot *r) {
- taxi_lights_root = r;
- }
-
- inline ssgBranch *get_models_branch () const {
- return models_branch;
- }
- inline void set_models_branch (ssgBranch *t) {
- models_branch = t;
- }
-
- inline ssgBranch *get_aircraft_branch () const {
- return aircraft_branch;
- }
- inline void set_aircraft_branch (ssgBranch *t) {
- aircraft_branch = t;
- }
-
- void register_placement_transform(ssgPlacementTransform *trans);
- void unregister_placement_transform(ssgPlacementTransform *trans);
+ SGVec3d& nearestHit,
+ const osg::Node* butNotFrom = 0);
+
+ osg::Group *get_scene_graph () const { return scene_graph.get(); }
+ osg::Group *get_terrain_branch () const { return terrain_branch.get(); }
+ 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();