namespace flightgear
{
class Hold;
+ class FlightPlan;
}
typedef std::vector<SGGeod> SGGeodVec;
{
public:
RoutePath(const flightgear::WayptVec& wpts);
-
+ RoutePath(const flightgear::FlightPlan* fp);
+
SGGeodVec pathForIndex(int index) const;
SGGeod positionForIndex(int index) const;
private:
+ void commonInit();
+
class PathCtx;
SGGeodVec pathForHold(flightgear::Hold* hold) const;
double computeAltitudeForIndex(int index) const;
double computeTrackForIndex(int index) const;
+ void interpolateGreatCircle(const SGGeod& aFrom, const SGGeod& aTo, SGGeodVec& r) const;
+
/**
* Find the distance (in Nm) to climb/descend a height in feet
*/