FlightGear next
flightgear::Airway Class Reference

#include <airways.hxx>

Inherits flightgear::RouteBase.

Classes

class  Network
 Track a network of airways. More...
 

Public Types

enum  Level { UnknownLevel = 0 , LowLevel = 1 , HighLevel = 2 , Both = 3 }
 

Public Member Functions

std::string ident () const override
 
int cacheId () const
 
Level level () const
 
double topAltitudeFt () const
 
double bottomAltitudeFt () const
 
WayptRef findEnroute (const std::string &aIdent) const
 
bool canVia (const WayptRef &from, const WayptRef &to) const
 
WayptVec via (const WayptRef &from, const WayptRef &to) const
 
bool containsNavaid (const FGPositionedRef &navaid) const
 
WayptRef findEnroute (const FGPositionedRef &navaid) const
 
- Public Member Functions inherited from flightgear::RouteBase
virtual ~RouteBase ()
 

Static Public Member Functions

static void loadAWYDat (const SGPath &path)
 
static AirwayRef loadByCacheId (int cacheId)
 
static AirwayRef findByIdent (const std::string &aIdent, Level level)
 
static AirwayRef findByIdentAndVia (const std::string &aIdent, const WayptRef &from, const WayptRef &to)
 Find the airway based on its ident.
 
static AirwayRef findByIdentAndNavaid (const std::string &aIdent, const FGPositionedRef nav)
 Find an airway by ident, and containing a particula rnavaid/fix.
 
static NetworkhighLevel ()
 
static NetworklowLevel ()
 
- Static Public Member Functions inherited from flightgear::RouteBase
static void loadAirportProcedures (const SGPath &aPath, FGAirport *aApt)
 
static void dumpRouteToKML (const WayptVec &aRoute, const std::string &aName)
 
static void dumpRouteToKMLLineString (const std::string &aIdent, const WayptVec &aRoute, std::ostream &aStream)
 

Friends

class Network
 
class NavDataCache
 

Detailed Description

Definition at line 42 of file airways.hxx.

Member Enumeration Documentation

◆ Level

Enumerator
UnknownLevel 
LowLevel 
HighLevel 

Victor airways.

Both 

Jet airways.

Definition at line 45 of file airways.hxx.

Member Function Documentation

◆ bottomAltitudeFt()

double flightgear::Airway::bottomAltitudeFt ( ) const
inline

Definition at line 66 of file airways.hxx.

◆ cacheId()

int flightgear::Airway::cacheId ( ) const
inline

Definition at line 55 of file airways.hxx.

◆ canVia()

bool flightgear::Airway::canVia ( const WayptRef & from,
const WayptRef & to ) const

Definition at line 197 of file airways.cxx.

◆ containsNavaid()

bool flightgear::Airway::containsNavaid ( const FGPositionedRef & navaid) const

Definition at line 266 of file airways.cxx.

◆ findByIdent()

AirwayRef flightgear::Airway::findByIdent ( const std::string & aIdent,
Level level )
static

Definition at line 294 of file airways.cxx.

◆ findByIdentAndNavaid()

AirwayRef flightgear::Airway::findByIdentAndNavaid ( const std::string & aIdent,
const FGPositionedRef nav )
static

Find an airway by ident, and containing a particula rnavaid/fix.

Definition at line 371 of file airways.cxx.

◆ findByIdentAndVia()

AirwayRef flightgear::Airway::findByIdentAndVia ( const std::string & aIdent,
const WayptRef & from,
const WayptRef & to )
static

Find the airway based on its ident.

IF both high- and low- level idents exist, select the one which can route between the from and to waypoints correctly, preferring high-level airways.

Definition at line 356 of file airways.cxx.

◆ findEnroute() [1/2]

WayptRef flightgear::Airway::findEnroute ( const FGPositionedRef & navaid) const

Definition at line 401 of file airways.cxx.

◆ findEnroute() [2/2]

WayptRef flightgear::Airway::findEnroute ( const std::string & aIdent) const

Definition at line 386 of file airways.cxx.

◆ highLevel()

Airway::Network * flightgear::Airway::highLevel ( )
static

Definition at line 105 of file airways.cxx.

◆ ident()

std::string flightgear::Airway::ident ( ) const
inlineoverridevirtual

Implements flightgear::RouteBase.

Definition at line 52 of file airways.hxx.

◆ level()

Level flightgear::Airway::level ( ) const
inline

Definition at line 58 of file airways.hxx.

◆ loadAWYDat()

void flightgear::Airway::loadAWYDat ( const SGPath & path)
static

Definition at line 130 of file airways.cxx.

◆ loadByCacheId()

AirwayRef flightgear::Airway::loadByCacheId ( int cacheId)
static

Definition at line 327 of file airways.cxx.

◆ lowLevel()

Airway::Network * flightgear::Airway::lowLevel ( )
static

Definition at line 93 of file airways.cxx.

◆ topAltitudeFt()

double flightgear::Airway::topAltitudeFt ( ) const
inline

Definition at line 63 of file airways.hxx.

◆ via()

WayptVec flightgear::Airway::via ( const WayptRef & from,
const WayptRef & to ) const

Definition at line 229 of file airways.cxx.

Friends And Related Symbol Documentation

◆ NavDataCache

friend class NavDataCache
friend

Definition at line 176 of file airways.hxx.

◆ Network

friend class Network
friend

Definition at line 175 of file airways.hxx.


The documentation for this class was generated from the following files: