FlightGear next
flightgear::ArrivalDeparture Class Referenceabstract

#include <procedure.hxx>

Inherits flightgear::Procedure.

Inherited by flightgear::SID, and flightgear::STAR.

Public Member Functions

virtual FGAirportairport () const
 
virtual bool isForRunway (const FGRunway *aWay) const
 Predicate, test if this procedure applies to the requested runway.
 
virtual RunwayVec runways () const
 
virtual bool route (FGRunwayRef aWay, Transition *trans, WayptVec &aPath)=0
 Find a path between the runway and enroute structure.
 
const WayptVeccommon () const
 
string_list transitionIdents () const
 
WayptRef findBestTransition (const SGGeod &aPos) const
 Given an enroute location, find the best enroute transition point for this arrival/departure.
 
TransitionfindTransitionByName (const std::string &aIdent) const
 Find an enroute transition waypoint by identifier.
 
TransitionfindTransitionByEnroute (FGPositioned *aEnroute) const
 
TransitionfindTransitionByEnroute (Waypt *aEnroute) const
 
- Public Member Functions inherited from flightgear::Procedure
virtual ProcedureType type () const =0
 
virtual std::string ident () const
 
- Public Member Functions inherited from flightgear::RouteBase
virtual ~RouteBase ()
 

Protected Types

typedef std::map< FGRunwayRef, TransitionRefRunwayTransitionMap
 

Protected Member Functions

bool commonRoute (Transition *t, WayptVec &aPath, FGRunwayRef aRwy)
 
 ArrivalDeparture (const std::string &aIdent, FGAirport *apt)
 
void addRunway (FGRunwayRef aRwy)
 
virtual WayptFlag flagType () const =0
 
void setCommon (const WayptVec &aWps)
 
- Protected Member Functions inherited from flightgear::Procedure
 Procedure (const std::string &aIdent)
 

Protected Attributes

RunwayTransitionMap _runways
 
- Protected Attributes inherited from flightgear::Procedure
std::string _ident
 

Friends

class NavdataVisitor
 

Additional Inherited Members

- 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)
 

Detailed Description

Definition at line 178 of file procedure.hxx.

Member Typedef Documentation

◆ RunwayTransitionMap

Definition at line 227 of file procedure.hxx.

Constructor & Destructor Documentation

◆ ArrivalDeparture()

flightgear::ArrivalDeparture::ArrivalDeparture ( const std::string & aIdent,
FGAirport * apt )
protected

Definition at line 193 of file procedure.cxx.

Member Function Documentation

◆ addRunway()

void flightgear::ArrivalDeparture::addRunway ( FGRunwayRef aRwy)
protected

Definition at line 199 of file procedure.cxx.

◆ airport()

virtual FGAirport * flightgear::ArrivalDeparture::airport ( ) const
inlinevirtual

Implements flightgear::Procedure.

Definition at line 181 of file procedure.hxx.

◆ common()

const WayptVec & flightgear::ArrivalDeparture::common ( ) const
inline

Definition at line 197 of file procedure.hxx.

◆ commonRoute()

bool flightgear::ArrivalDeparture::commonRoute ( Transition * t,
WayptVec & aPath,
FGRunwayRef aRwy )
protected

Definition at line 261 of file procedure.cxx.

◆ findBestTransition()

WayptRef flightgear::ArrivalDeparture::findBestTransition ( const SGGeod & aPos) const

Given an enroute location, find the best enroute transition point for this arrival/departure.

Best is currently determined as 'closest to the enroute location'.

Definition at line 347 of file procedure.cxx.

◆ findTransitionByEnroute() [1/2]

Transition * flightgear::ArrivalDeparture::findTransitionByEnroute ( FGPositioned * aEnroute) const

Definition at line 331 of file procedure.cxx.

◆ findTransitionByEnroute() [2/2]

Transition * flightgear::ArrivalDeparture::findTransitionByEnroute ( Waypt * aEnroute) const

Definition at line 315 of file procedure.cxx.

◆ findTransitionByName()

Transition * flightgear::ArrivalDeparture::findTransitionByName ( const std::string & aIdent) const

Find an enroute transition waypoint by identifier.

This is necessary for the route-manager and similar code that that needs to talk about transitions in a human-meaningful way (including persistence).

Definition at line 374 of file procedure.cxx.

◆ flagType()

virtual WayptFlag flightgear::ArrivalDeparture::flagType ( ) const
protectedpure virtual

Implemented in flightgear::SID, and flightgear::STAR.

◆ isForRunway()

bool flightgear::ArrivalDeparture::isForRunway ( const FGRunway * aWay) const
virtual

Predicate, test if this procedure applies to the requested runway.

Definition at line 205 of file procedure.cxx.

◆ route()

virtual bool flightgear::ArrivalDeparture::route ( FGRunwayRef aWay,
Transition * trans,
WayptVec & aPath )
pure virtual

Find a path between the runway and enroute structure.

Waypoints corresponding to the appropriate transitions and segments will be created.

Implemented in flightgear::SID, and flightgear::STAR.

◆ runways()

RunwayVec flightgear::ArrivalDeparture::runways ( ) const
virtual

Reimplemented from flightgear::Procedure.

Definition at line 216 of file procedure.cxx.

◆ setCommon()

void flightgear::ArrivalDeparture::setCommon ( const WayptVec & aWps)
protected

Definition at line 255 of file procedure.cxx.

◆ transitionIdents()

string_list flightgear::ArrivalDeparture::transitionIdents ( ) const

Definition at line 234 of file procedure.cxx.

Friends And Related Symbol Documentation

◆ NavdataVisitor

friend class NavdataVisitor
friend

Definition at line 235 of file procedure.hxx.

Member Data Documentation

◆ _runways

RunwayTransitionMap flightgear::ArrivalDeparture::_runways
protected

Definition at line 228 of file procedure.hxx.


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