]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/NavDataCache.hxx
Fix some leaks on reset
[flightgear.git] / src / Navaids / NavDataCache.hxx
index 59f4e8923abfe0ec59d620a7fd62402cc2217fde..3a6ef313c85449f3b8277de447e887fd4f5299da 100644 (file)
@@ -105,8 +105,6 @@ public:
   PositionedID insertNavaid(FGPositioned::Type ty, const std::string& ident,
                             const std::string& name, const SGGeod& pos, int freq, int range, double multiuse,
                             PositionedID apt, PositionedID runway);
-  void updateILS(PositionedID ils, const SGGeod& newPos, double aHdg);
-
 
   // Assign colocated DME to a navaid
   void setNavaidColocated(PositionedID navaid, PositionedID colocatedDME);
@@ -122,6 +120,14 @@ public:
     
   void dropGroundnetFor(PositionedID aAirport);
   
+  /**
+   * Remove all ground-nets globally from the cache.
+   * This includes parking and taxi-nodes and edges between them. It's useful
+   * when scenery paths change, since the ground-nets depend on the scenery.
+   * Using this we can avoid havind to rebuild the entire cache.
+   */
+  void dropAllGroundnets();
+  
   PositionedID insertParking(const std::string& name, const SGGeod& aPos,
                              PositionedID aAirport,
                              double aHeading, int aRadius, const std::string& aAircraftType,