]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/tilemgr.hxx
Some autopilot fixes
[flightgear.git] / src / Scenery / tilemgr.hxx
index 048fe7692320b3a462eb86f7d8beaa9508659233..87d1f1347872401f042d1689184d54548c24a56f 100644 (file)
@@ -38,6 +38,11 @@ namespace osg
 class Node;
 }
 
+namespace simgear
+{
+class SGTerraSync;
+}
+
 class FGTileMgr : public SGSubsystem, public simgear::ModelLoadHelper {
 
 private:
@@ -75,12 +80,17 @@ private:
      * tile cache
      */
     simgear::TileCache tile_cache;
+    simgear::SGTerraSync* _terra_sync;
 
     // Update the various queues maintained by the tilemagr (private
     // internal function, do not call directly.)
     void update_queues();
     
     SGPropertyNode* _visibilityMeters;
+    SGPropertyChangeListener* _propListener;
+    SGPropertyNode_ptr _randomObjects;
+    SGPropertyNode_ptr _randomVegetation;
+    SGPropertyNode_ptr _maxTileRangeM;
     
 public:
     FGTileMgr();
@@ -93,6 +103,9 @@ public:
 
     virtual void update(double dt);
 
+    // update loader configuration options
+    void configChanged();
+
     int schedule_tiles_at(const SGGeod& location, double rangeM);
 
 
@@ -104,7 +117,7 @@ public:
     bool schedule_scenery(const SGGeod& position, double range_m, double duration=0.0);
 
     // Load a model for a tile
-    osg::Node* loadTileModel(const string& modelPath, bool cacheModel);
+    osg::Node* loadTileModel(const std::string& modelPath, bool cacheModel);
 
     // Returns true if tiles around current view position have been loaded
     bool isSceneryLoaded();