class Waypt : public SGReferenced
{
public:
+ virtual ~Waypt();
+
Route* owner() const
{ return _owner; }
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;
Route* _owner;
unsigned short _flags;
-
+ mutable double _magVarDeg;
};
typedef std::vector<WayptRef> WayptVec;