class Node;
}
+namespace simgear
+{
+class SGTerraSync;
+}
+
class FGTileMgr : public SGSubsystem, public simgear::ModelLoadHelper {
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();
virtual void update(double dt);
+ // update loader configuration options
+ void configChanged();
+
int schedule_tiles_at(const SGGeod& location, double rangeM);
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();