FGTaxiNode* previousNode;
FGTaxiSegment* previousSeg;
+
public:
FGTaxiNode() :
index(0),
FGTaxiNode &operator =(const FGTaxiNode &other)
{
- geod = other.geod;
- index = other.index;
- isOnRunway = other.isOnRunway;
- holdType = other.holdType;
- next = other.next;
- pathScore = other.pathScore;
- previousNode = other.previousNode;
- previousSeg = other.previousSeg;
+ geod = other.geod;
+ index = other.index;
+ isOnRunway = other.isOnRunway;
+ holdType = other.holdType;
+ next = other.next;
+ pathScore = other.pathScore;
+ previousNode = other.previousNode;
+ previousSeg = other.previousSeg;
return *this;
};
void setIndex(int idx) { index = idx; };
void setLatitude (double val);
void setLongitude(double val);
+ void setElevation(double val);
void setLatitude (const std::string& val);
void setLongitude(const std::string& val);
void addSegment(FGTaxiSegment *segment) { next.push_back(segment); };
double getPathScore() { return pathScore; };
double getLatitude() { return geod.getLatitudeDeg();};
double getLongitude(){ return geod.getLongitudeDeg();};
+ double getElevationM (double refelev=0);
+ double getElevationFt(double refelev=0);
const SGGeod& getGeod() const { return geod; }
FGTaxiSegmentVectorIterator getEndRoute() { return next.end(); };
bool operator<(const FGTaxiNode &other) const { return index < other.index; };
- void sortEndSegments(bool);
};