FlightGear next
flightgear::Airway::Network Class Reference

Track a network of airways. More...

#include <airways.hxx>

Public Member Functions

bool route (WayptRef aFrom, WayptRef aTo, WayptVec &aPath)
 Principal routing algorithm.
 
std::pair< FGPositionedRef, bool > findClosestNode (const SGGeod &aGeod)
 Overloaded version working with a raw SGGeod.
 
FGPositionedRef findNodeByIdent (const std::string &ident, const SGGeod &near) const
 

Friends

class Airway
 
class InAirwayFilter
 

Detailed Description

Track a network of airways.

Definition at line 100 of file airways.hxx.

Member Function Documentation

◆ findClosestNode()

std::pair< FGPositionedRef, bool > flightgear::Airway::Network::findClosestNode ( const SGGeod & aGeod)

Overloaded version working with a raw SGGeod.

Definition at line 562 of file airways.cxx.

◆ findNodeByIdent()

FGPositionedRef flightgear::Airway::Network::findNodeByIdent ( const std::string & ident,
const SGGeod & near ) const

Definition at line 576 of file airways.cxx.

◆ route()

bool flightgear::Airway::Network::route ( WayptRef aFrom,
WayptRef aTo,
WayptVec & aPath )

Principal routing algorithm.

Attempts to find the best route beween two points. If either point is part of the airway network (e.g, a SID or STAR transition), it will not be duplicated in the result path.

Returns true if a route could be found, or false otherwise.

Definition at line 457 of file airways.cxx.

Friends And Related Symbol Documentation

◆ Airway

friend class Airway
friend

Definition at line 103 of file airways.hxx.

◆ InAirwayFilter

friend class InAirwayFilter
friend

Definition at line 104 of file airways.hxx.


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