|
FlightGear next
|
#include <waypoint.hxx>
Inherits flightgear::Waypt.
Public Member Functions | |
| HeadingToAltitude (RouteBase *aOwner, const std::string &aIdent, double aMagHdg) | |
| HeadingToAltitude (RouteBase *aOwner) | |
| bool | initFromProperties (SGPropertyNode_ptr aProp) override |
| Persistence helper - read node properties from a file. | |
| void | writeToProperties (SGPropertyNode_ptr aProp) const override |
| Persistence helper - save this element to a node. | |
| virtual std::string | type () const |
| virtual SGGeod | position () const |
| virtual std::string | ident () const |
| Identifier assoicated with the waypoint. | |
| double | headingDegMagnetic () const |
| virtual double | magvarDeg () const |
| Magentic variation at/in the vicinity of the waypoint. | |
| virtual double | headingRadialDeg () const |
| return the assoicated heading or radial for this waypoint. | |
Public Member Functions inherited from flightgear::Waypt | |
| virtual | ~Waypt () |
| RouteBase * | owner () const |
| virtual FGPositioned * | source () const |
| The Positioned associated with this element, if one exists. | |
| double | altitudeFt () const |
| double | speed (RouteUnits aUnits=DEFAULT_UNITS) const |
| double | altitude (RouteUnits aUnits=DEFAULT_UNITS) const |
| double | constraintAltitude (RouteUnits aUnits=DEFAULT_UNITS) const |
| double | speedKts () const |
| double | speedMach () const |
| virtual RouteRestriction | altitudeRestriction () const |
| virtual RouteRestriction | speedRestriction () const |
| void | setAltitude (double aAlt, RouteRestriction aRestrict, RouteUnits aUnits=DEFAULT_UNITS) |
| void | setSpeed (double aSpeed, RouteRestriction aRestrict, RouteUnits aUnits=DEFAULT_UNITS) |
| void | setConstraintAltitude (double aAlt) |
| virtual bool | flag (WayptFlag aFlag) const |
| Test if the specified flag is set for this element. | |
| virtual unsigned int | flags () const |
| void | setFlag (WayptFlag aFlag, bool aV=true) |
| void | saveAsNode (SGPropertyNode *node) const |
| bool | matches (Waypt *aOther) const |
| Test if this element and another are 'the same', i.e matching ident and lat/lon are approximately equal. | |
| bool | matches (FGPositioned *aPos) const |
| Test if this element and positioned are the same, i.e matching ident and lat/lon are approximately equal. | |
| bool | matches (const SGGeod &aPos) const |
| Test if this element and a position 'the same' this can be defined by either position, ident or both. | |
| virtual std::string | icaoDescription () const |
| icaoDescription - description of the waypoint in ICAO route plan format | |
Additional Inherited Members | |
Static Public Member Functions inherited from flightgear::Waypt | |
| static WayptRef | createFromProperties (RouteBase *aOwner, SGPropertyNode_ptr aProp) |
| Factory method. | |
| static WayptRef | createFromString (RouteBase *aOwner, const std::string &s, const SGGeod &vicinity) |
| Create a waypoint from the route manager's standard string format: | |
| static WayptRef | fromLatLonString (RouteBase *aOwner, const std::string &target) |
Protected Types inherited from flightgear::Waypt | |
| typedef Waypt * | FactoryFunction(RouteBase *aOwner) |
Protected Member Functions inherited from flightgear::Waypt | |
| Waypt (RouteBase *aOwner) | |
Static Protected Member Functions inherited from flightgear::Waypt | |
| static void | registerFactory (const std::string aNodeType, FactoryFunction *aFactory) |
Protected Attributes inherited from flightgear::Waypt | |
| double | _altitude = 0.0 |
| std::optional< double > | _constraintAltitude |
| some restriction types specify two altitudes, in which case this is the second value, corresponding to AltitudeCons in the level-D XML procedures format. | |
| RouteUnits | _altitudeUnits = ALTITUDE_FEET |
| double | _speed = 0.0 |
| RouteUnits | _speedUnits = SPEED_KNOTS |
| RouteRestriction | _altRestrict = RESTRICT_NONE |
| RouteRestriction | _speedRestrict = RESTRICT_NONE |
Definition at line 186 of file waypoint.hxx.
| flightgear::HeadingToAltitude::HeadingToAltitude | ( | RouteBase * | aOwner, |
| const std::string & | aIdent, | ||
| double | aMagHdg ) |
| flightgear::HeadingToAltitude::HeadingToAltitude | ( | RouteBase * | aOwner | ) |
Definition at line 344 of file waypoint.cxx.
|
inline |
Definition at line 205 of file waypoint.hxx.
|
inlinevirtual |
return the assoicated heading or radial for this waypoint.
The exact meaning varies by type - for a hold it's the inbound radial, for a DME intercept it's the heading to hold, and so on.
Reimplemented from flightgear::Waypt.
Definition at line 211 of file waypoint.hxx.
|
inlinevirtual |
Identifier assoicated with the waypoint.
Human-readable, but possibly quite terse, and definitiely not unique.
Reimplemented from flightgear::Waypt.
Definition at line 202 of file waypoint.hxx.
|
overridevirtual |
Persistence helper - read node properties from a file.
Reimplemented from flightgear::Waypt.
Definition at line 349 of file waypoint.cxx.
|
inlinevirtual |
Magentic variation at/in the vicinity of the waypoint.
For some waypoint types this will always return 0.
Reimplemented from flightgear::Waypt.
Definition at line 208 of file waypoint.hxx.
|
inlinevirtual |
Implements flightgear::Waypt.
Definition at line 199 of file waypoint.hxx.
|
inlinevirtual |
Implements flightgear::Waypt.
Definition at line 196 of file waypoint.hxx.
|
overridevirtual |
Persistence helper - save this element to a node.
Reimplemented from flightgear::Waypt.
Definition at line 364 of file waypoint.cxx.