X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2FNavDataCache.hxx;h=3a6ef313c85449f3b8277de447e887fd4f5299da;hb=487546c848ad5559760b4de4aa36f19b9b8627a7;hp=4975b0954fa89d5f96c0ce7ce0689e3989e7ad8b;hpb=0cda3cbfb2754aa77aa2699720fd0c57cfb9b9d4;p=flightgear.git diff --git a/src/Navaids/NavDataCache.hxx b/src/Navaids/NavDataCache.hxx index 4975b0954..3a6ef313c 100644 --- a/src/Navaids/NavDataCache.hxx +++ b/src/Navaids/NavDataCache.hxx @@ -102,15 +102,9 @@ public: void setRunwayReciprocal(PositionedID runway, PositionedID recip); void setRunwayILS(PositionedID runway, PositionedID ils); - void updateRunwayThreshold(PositionedID runwayID, const SGGeod &aThreshold, - double aHeading, double aDisplacedThreshold, - double aStopway); - 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); @@ -126,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,