]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/routePath.hxx
Fix cleanup of RouteDataPrivate
[flightgear.git] / src / Navaids / routePath.hxx
index 421dd98205cbc63a8eb5feeb3216e976c98ef46c..799731e9d736999a6c024f358058437a326202ca 100644 (file)
@@ -37,18 +37,21 @@ typedef std::vector<SGGeod> SGGeodVec;
 class RoutePath
 {
 public:
-  RoutePath(const flightgear::WayptVec& wpts);
   RoutePath(const flightgear::FlightPlan* fp);
-  
+  ~RoutePath();
+
   SGGeodVec pathForIndex(int index) const;
   
   SGGeod positionForIndex(int index) const;
-  
+
+  SGGeod positionForDistanceFrom(int index, double distanceM) const;
+
   double trackForIndex(int index) const;
   
   double distanceForIndex(int index) const;
   
   double distanceBetweenIndices(int from, int to) const;
+
 private:
   class RoutePathPrivate;
   
@@ -62,10 +65,7 @@ private:
   void interpolateGreatCircle(const SGGeod& aFrom, const SGGeod& aTo, SGGeodVec& r) const;
   
   
-  RoutePathPrivate* d;
-  
-  
-  double _pathTurnRate; ///< degrees-per-second, defaults to 3, i.e 180 in a minute
+  std::auto_ptr<RoutePathPrivate> d;
 };
 
 #endif