]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/gnnode.hxx
Prepare and implement reinit methods for instruments
[flightgear.git] / src / Airports / gnnode.hxx
index 3358ea51e6e891a87adebad77adef2958bb3ec80..aa4e7ed2637f199724ca5969ffd0d19f4a305736 100644 (file)
@@ -44,6 +44,7 @@ private:
   FGTaxiNode* previousNode;
   FGTaxiSegment* previousSeg;
 
+
 public:
   FGTaxiNode() :
       index(0),
@@ -69,20 +70,21 @@ public:
 
 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);     };
@@ -99,6 +101,8 @@ FGTaxiNode &operator =(const FGTaxiNode &other)
   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; }
 
@@ -111,7 +115,6 @@ FGTaxiNode &operator =(const FGTaxiNode &other)
   FGTaxiSegmentVectorIterator getEndRoute()   { return next.end();   }; 
   bool operator<(const FGTaxiNode &other) const { return index < other.index; };
 
-  void sortEndSegments(bool);
 
 };