Abstract base class for waypoints (and things that are treated similarly by navigation systems).
More...
#include <route.hxx>
Inherits SGReferenced.
Inherited by flightgear::ATCVectors, flightgear::BasicWaypt, flightgear::DMEIntercept, flightgear::Discontinuity, flightgear::HeadingToAltitude, flightgear::NavaidWaypoint, flightgear::RadialIntercept, flightgear::RunwayWaypt, and flightgear::Via.
|
| Waypt (RouteBase *aOwner) |
|
virtual bool | initFromProperties (SGPropertyNode_ptr aProp) |
| Persistence helper - read node properties from a file.
|
|
virtual void | writeToProperties (SGPropertyNode_ptr aProp) const |
| Persistence helper - save this element to a node.
|
|
Abstract base class for waypoints (and things that are treated similarly by navigation systems).
More precisely this is route path elements, including their terminator.
Definition at line 104 of file route.hxx.
◆ FactoryFunction
◆ ~Waypt()
flightgear::Waypt::~Waypt |
( |
| ) |
|
|
virtual |
◆ Waypt()
flightgear::Waypt::Waypt |
( |
RouteBase * | aOwner | ) |
|
|
protected |
◆ altitude()
◆ altitudeFt()
double flightgear::Waypt::altitudeFt |
( |
| ) |
const |
◆ altitudeRestriction()
◆ constraintAltitude()
◆ createFromProperties()
WayptRef flightgear::Waypt::createFromProperties |
( |
RouteBase * | aOwner, |
|
|
SGPropertyNode_ptr | aProp ) |
|
static |
◆ createFromString()
WayptRef flightgear::Waypt::createFromString |
( |
RouteBase * | aOwner, |
|
|
const std::string & | s, |
|
|
const SGGeod & | vicinity ) |
|
static |
Create a waypoint from the route manager's standard string format:
- simple identifier
- decimal-lon,decimal-lat
- airport-id/runway-id
- navaid/radial-deg/offset-nm
Definition at line 491 of file route.cxx.
◆ flag()
bool flightgear::Waypt::flag |
( |
WayptFlag | aFlag | ) |
const |
|
virtual |
Test if the specified flag is set for this element.
Definition at line 204 of file route.cxx.
◆ flags()
virtual unsigned int flightgear::Waypt::flags |
( |
| ) |
const |
|
inlinevirtual |
◆ fromLatLonString()
WayptRef flightgear::Waypt::fromLatLonString |
( |
RouteBase * | aOwner, |
|
|
const std::string & | target ) |
|
static |
◆ headingRadialDeg()
double flightgear::Waypt::headingRadialDeg |
( |
| ) |
const |
|
virtual |
◆ icaoDescription()
std::string flightgear::Waypt::icaoDescription |
( |
| ) |
const |
|
virtual |
◆ ident()
std::string flightgear::Waypt::ident |
( |
| ) |
const |
|
virtual |
Identifier assoicated with the waypoint.
Human-readable, but possibly quite terse, and definitiely not unique.
Reimplemented in flightgear::ATCVectors, flightgear::BasicWaypt, flightgear::Discontinuity, flightgear::DMEIntercept, flightgear::HeadingToAltitude, flightgear::NavaidWaypoint, flightgear::RadialIntercept, flightgear::RunwayWaypt, and flightgear::Via.
Definition at line 199 of file route.cxx.
◆ initFromProperties()
bool flightgear::Waypt::initFromProperties |
( |
SGPropertyNode_ptr | aProp | ) |
|
|
protectedvirtual |
Persistence helper - read node properties from a file.
Reimplemented in flightgear::ATCVectors, flightgear::BasicWaypt, flightgear::Discontinuity, flightgear::DMEIntercept, flightgear::HeadingToAltitude, flightgear::Hold, flightgear::NavaidWaypoint, flightgear::OffsetNavaidWaypoint, flightgear::RadialIntercept, flightgear::RunwayWaypt, and flightgear::Via.
Definition at line 584 of file route.cxx.
◆ magvarDeg()
double flightgear::Waypt::magvarDeg |
( |
| ) |
const |
|
virtual |
◆ matches() [1/3]
bool flightgear::Waypt::matches |
( |
const SGGeod & | aPos | ) |
const |
Test if this element and a position 'the same' this can be defined by either position, ident or both.
Definition at line 242 of file route.cxx.
◆ matches() [2/3]
bool flightgear::Waypt::matches |
( |
FGPositioned * | aPos | ) |
const |
Test if this element and positioned are the same, i.e matching ident and lat/lon are approximately equal.
Definition at line 229 of file route.cxx.
◆ matches() [3/3]
bool flightgear::Waypt::matches |
( |
Waypt * | aOther | ) |
const |
Test if this element and another are 'the same', i.e matching ident and lat/lon are approximately equal.
Definition at line 219 of file route.cxx.
◆ owner()
RouteBase * flightgear::Waypt::owner |
( |
| ) |
const |
|
inline |
◆ position()
virtual SGGeod flightgear::Waypt::position |
( |
| ) |
const |
|
pure virtual |
◆ registerFactory()
static void flightgear::Waypt::registerFactory |
( |
const std::string | aNodeType, |
|
|
FactoryFunction * | aFactory ) |
|
staticprotected |
◆ saveAsNode()
void flightgear::Waypt::saveAsNode |
( |
SGPropertyNode * | node | ) |
const |
◆ setAltitude()
◆ setConstraintAltitude()
void flightgear::Waypt::setConstraintAltitude |
( |
double | aAlt | ) |
|
◆ setFlag()
void flightgear::Waypt::setFlag |
( |
WayptFlag | aFlag, |
|
|
bool | aV = true ) |
◆ setSpeed()
◆ source()
◆ speed()
◆ speedKts()
double flightgear::Waypt::speedKts |
( |
| ) |
const |
◆ speedMach()
double flightgear::Waypt::speedMach |
( |
| ) |
const |
◆ speedRestriction()
◆ type()
virtual std::string flightgear::Waypt::type |
( |
| ) |
const |
|
pure virtual |
Implemented in flightgear::ATCVectors, flightgear::BasicWaypt, flightgear::Discontinuity, flightgear::DMEIntercept, flightgear::HeadingToAltitude, flightgear::Hold, flightgear::NavaidWaypoint, flightgear::OffsetNavaidWaypoint, flightgear::RadialIntercept, flightgear::RunwayWaypt, and flightgear::Via.
◆ writeToProperties()
void flightgear::Waypt::writeToProperties |
( |
SGPropertyNode_ptr | aProp | ) |
const |
|
protectedvirtual |
Persistence helper - save this element to a node.
Reimplemented in flightgear::ATCVectors, flightgear::BasicWaypt, flightgear::Discontinuity, flightgear::DMEIntercept, flightgear::HeadingToAltitude, flightgear::Hold, flightgear::NavaidWaypoint, flightgear::OffsetNavaidWaypoint, flightgear::RadialIntercept, flightgear::RunwayWaypt, and flightgear::Via.
Definition at line 655 of file route.cxx.
◆ NavdataVisitor
◆ _altitude
double flightgear::Waypt::_altitude = 0.0 |
|
protected |
◆ _altitudeUnits
◆ _altRestrict
◆ _constraintAltitude
std::optional<double> flightgear::Waypt::_constraintAltitude |
|
protected |
some restriction types specify two altitudes, in which case this is the second value, corresponding to AltitudeCons in the level-D XML procedures format.
Definition at line 240 of file route.hxx.
◆ _speed
double flightgear::Waypt::_speed = 0.0 |
|
protected |
◆ _speedRestrict
◆ _speedUnits
The documentation for this class was generated from the following files: