3 #include <boost/foreach.hpp>
5 #include "groundnetwork.hxx"
7 #include <Main/globals.hxx>
8 #include <Scenery/scenery.hxx>
10 /**************************************************************************
12 *************************************************************************/
14 FGTaxiNode::FGTaxiNode(PositionedID aGuid, int index, const SGGeod& pos, bool aOnRunway, int aHoldType) :
15 FGPositioned(aGuid, FGPositioned::PARKING, "", pos),
17 isOnRunway(aOnRunway),
23 FGTaxiNode::~FGTaxiNode()
27 void FGTaxiNode::setElevation(double val)
29 // ignored for the moment
32 double FGTaxiNode::getElevationFt(double refelev)
35 double elevF = elevation();
36 double elevationEnd = 0;
37 if ((elevF == 0) || (elevF == refelev)) {
38 SGGeod center2 = mPosition;
39 FGScenery * local_scenery = globals->get_scenery();
40 center2.setElevationM(SG_MAX_ELEVATION_M);
41 if (local_scenery->get_elevation_m( center2, elevationEnd, NULL )) {
42 geod.setElevationM(elevationEnd);
46 return mPosition.getElevationFt();
49 double FGTaxiNode::getElevationM(double refelev)
51 return geod().getElevationM();
54 FGTaxiSegment* FGTaxiNode::getArcTo(FGTaxiNode* aEnd) const
56 BOOST_FOREACH(FGTaxiSegment* arc, next) {
57 if (arc->getEnd() == aEnd) {