]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/route.hxx
bind the sky disable cutoff distance to a property
[flightgear.git] / src / Navaids / route.hxx
index b0375d15c980c68d00b76ce255bf5ee4516d6dd4..c18c3883dc212b3f8833dea446acfa2473885f88 100644 (file)
@@ -85,6 +85,8 @@ typedef enum {
 class Waypt : public SGReferenced
 {
 public:
+  virtual ~Waypt();
+  
        Route* owner() const 
                { return _owner; }
   
@@ -156,6 +158,12 @@ public:
   bool matches(const SGGeod& aPos) const;
   
   virtual std::string type() const = 0;
+  
+  /**
+   * Magentic variation at/in the vicinity of the waypoint.
+   * For some waypoint types this will always return 0.
+   */
+  virtual double magvarDeg() const;
 protected:
   friend class NavdataVisitor;
   
@@ -187,7 +195,7 @@ private:
 
        Route* _owner;
        unsigned short _flags;
-       
+  mutable double _magVarDeg; 
 };
 
 typedef std::vector<WayptRef> WayptVec;