FlightGear next
FlightPlanController Class Reference

#include <FlightPlanController.hxx>

Inherits QObject.

Public Types

enum  FlightRules { VFR = 0 , IFR , IFR_VFR , VFR_IFR }
 
enum  FlightType {
  Scheduled = 0 , NonScheduled , GeneralAviation , Military ,
  Other
}
 

Public Slots

void setFlightType (FlightType ty)
 
void setFlightRules (FlightRules r)
 
void setCallsign (QString s)
 
void setRemarks (QString r)
 
void setAircraftType (QString ty)
 
void setDeparture (QmlPositioned *destinationAirport)
 
void setDestination (QmlPositioned *destinationAirport)
 
void setAlternate (QmlPositioned *apt)
 
void setCruiseSpeed (QuantityValue cruiseSpeed)
 
void setEstimatedDurationMinutes (int mins)
 
void computeDuration ()
 
void clearPlan ()
 
void savePlan ()
 

Signals

void infoChanged ()
 
void waypointsChanged ()
 
void enabledChanged (bool enabled)
 
void descriptionChanged (QString description)
 

Public Member Functions

virtual ~FlightPlanController ()
 
 FlightPlanController (QObject *parent, LaunchConfig *config)
 
bool loadFromPath (QString path)
 
bool saveToPath (QString path) const
 
QuantityValue cruiseAltitude () const
 
void setCruiseAltitude (QuantityValue alt)
 
QString description () const
 
QmlPositioneddeparture () const
 
QmlPositioneddestination () const
 
QmlPositionedalternate () const
 
QuantityValue cruiseSpeed () const
 
FlightRules flightRules () const
 
FlightType flightType () const
 
QString callsign () const
 
QString remarks () const
 
QString aircraftType () const
 
int estimatedDurationMinutes () const
 
QuantityValue totalDistanceNm () const
 
Q_INVOKABLE bool tryParseRoute (QString routeDesc)
 
Q_INVOKABLE bool tryGenerateRoute ()
 
Q_INVOKABLE void clearRoute ()
 
LegsModellegs () const
 
QString icaoRoute () const
 
flightgear::FlightPlanRef flightplan () const
 
Q_INVOKABLE bool loadPlan ()
 

Properties

bool enabled
 
QString description
 
QString callsign
 
QString remarks
 
QString aircraftType
 
LegsModellegs
 
QString icaoRoute
 
FlightRules flightRules
 
FlightType flightType
 
QuantityValue totalDistanceNm
 
int estimatedDurationMinutes
 
QuantityValue cruiseAltitude
 
QuantityValue cruiseSpeed
 
QmlPositioneddeparture
 
QmlPositioneddestination
 
QmlPositionedalternate
 

Friends

class FPDelegate
 

Detailed Description

Definition at line 39 of file FlightPlanController.hxx.

Member Enumeration Documentation

◆ FlightRules

Enumerator
VFR 
IFR 
IFR_VFR 
VFR_IFR 

Definition at line 78 of file FlightPlanController.hxx.

◆ FlightType

Enumerator
Scheduled 
NonScheduled 
GeneralAviation 
Military 
Other 

Definition at line 86 of file FlightPlanController.hxx.

Constructor & Destructor Documentation

◆ ~FlightPlanController()

FlightPlanController::~FlightPlanController ( )
virtual

Definition at line 211 of file FlightPlanController.cxx.

◆ FlightPlanController()

FlightPlanController::FlightPlanController ( QObject * parent,
LaunchConfig * config )
explicit

Definition at line 190 of file FlightPlanController.cxx.

Member Function Documentation

◆ aircraftType()

QString FlightPlanController::aircraftType ( ) const

Definition at line 422 of file FlightPlanController.cxx.

◆ alternate()

QmlPositioned * FlightPlanController::alternate ( ) const

Definition at line 371 of file FlightPlanController.cxx.

◆ callsign()

QString FlightPlanController::callsign ( ) const

Definition at line 412 of file FlightPlanController.cxx.

◆ clearPlan

void FlightPlanController::clearPlan ( )
slot

Definition at line 216 of file FlightPlanController.cxx.

◆ clearRoute()

void FlightPlanController::clearRoute ( )

Definition at line 513 of file FlightPlanController.cxx.

◆ computeDuration

void FlightPlanController::computeDuration ( )
slot

Definition at line 532 of file FlightPlanController.cxx.

◆ cruiseAltitude()

QuantityValue FlightPlanController::cruiseAltitude ( ) const

Definition at line 296 of file FlightPlanController.cxx.

◆ cruiseSpeed()

QuantityValue FlightPlanController::cruiseSpeed ( ) const

Definition at line 379 of file FlightPlanController.cxx.

◆ departure()

QmlPositioned * FlightPlanController::departure ( ) const

Definition at line 355 of file FlightPlanController.cxx.

◆ description()

QString FlightPlanController::description ( ) const

Definition at line 342 of file FlightPlanController.cxx.

◆ descriptionChanged

void FlightPlanController::descriptionChanged ( QString description)
signal

◆ destination()

QmlPositioned * FlightPlanController::destination ( ) const

Definition at line 363 of file FlightPlanController.cxx.

◆ enabledChanged

void FlightPlanController::enabledChanged ( bool enabled)
signal

◆ estimatedDurationMinutes()

int FlightPlanController::estimatedDurationMinutes ( ) const

Definition at line 457 of file FlightPlanController.cxx.

◆ flightplan()

flightgear::FlightPlanRef FlightPlanController::flightplan ( ) const
inline

Definition at line 132 of file FlightPlanController.hxx.

◆ flightRules()

FlightPlanController::FlightRules FlightPlanController::flightRules ( ) const

Definition at line 392 of file FlightPlanController.cxx.

◆ flightType()

FlightPlanController::FlightType FlightPlanController::flightType ( ) const

Definition at line 397 of file FlightPlanController.cxx.

◆ icaoRoute()

QString FlightPlanController::icaoRoute ( ) const

Definition at line 518 of file FlightPlanController.cxx.

◆ infoChanged

void FlightPlanController::infoChanged ( )
signal

◆ legs()

LegsModel * FlightPlanController::legs ( ) const
inline

Definition at line 127 of file FlightPlanController.hxx.

◆ loadFromPath()

bool FlightPlanController::loadFromPath ( QString path)

Definition at line 229 of file FlightPlanController.cxx.

◆ loadPlan()

bool FlightPlanController::loadPlan ( )

Definition at line 538 of file FlightPlanController.cxx.

◆ remarks()

QString FlightPlanController::remarks ( ) const

Definition at line 417 of file FlightPlanController.cxx.

◆ savePlan

void FlightPlanController::savePlan ( )
slot

Definition at line 554 of file FlightPlanController.cxx.

◆ saveToPath()

bool FlightPlanController::saveToPath ( QString path) const

Definition at line 251 of file FlightPlanController.cxx.

◆ setAircraftType

void FlightPlanController::setAircraftType ( QString ty)
slot

Definition at line 447 of file FlightPlanController.cxx.

◆ setAlternate

void FlightPlanController::setAlternate ( QmlPositioned * apt)
slot

Definition at line 601 of file FlightPlanController.cxx.

◆ setCallsign

void FlightPlanController::setCallsign ( QString s)
slot

Definition at line 427 of file FlightPlanController.cxx.

◆ setCruiseAltitude()

void FlightPlanController::setCruiseAltitude ( QuantityValue alt)

Definition at line 309 of file FlightPlanController.cxx.

◆ setCruiseSpeed

void FlightPlanController::setCruiseSpeed ( QuantityValue cruiseSpeed)
slot

Definition at line 615 of file FlightPlanController.cxx.

◆ setDeparture

void FlightPlanController::setDeparture ( QmlPositioned * destinationAirport)
slot

Definition at line 573 of file FlightPlanController.cxx.

◆ setDestination

void FlightPlanController::setDestination ( QmlPositioned * destinationAirport)
slot

Definition at line 587 of file FlightPlanController.cxx.

◆ setEstimatedDurationMinutes

void FlightPlanController::setEstimatedDurationMinutes ( int mins)
slot

Definition at line 523 of file FlightPlanController.cxx.

◆ setFlightRules

void FlightPlanController::setFlightRules ( FlightRules r)
slot

Definition at line 402 of file FlightPlanController.cxx.

◆ setFlightType

void FlightPlanController::setFlightType ( FlightType ty)
slot

Definition at line 407 of file FlightPlanController.cxx.

◆ setRemarks

void FlightPlanController::setRemarks ( QString r)
slot

Definition at line 437 of file FlightPlanController.cxx.

◆ totalDistanceNm()

QuantityValue FlightPlanController::totalDistanceNm ( ) const

Definition at line 462 of file FlightPlanController.cxx.

◆ tryGenerateRoute()

bool FlightPlanController::tryGenerateRoute ( )

Definition at line 473 of file FlightPlanController.cxx.

◆ tryParseRoute()

bool FlightPlanController::tryParseRoute ( QString routeDesc)

Definition at line 467 of file FlightPlanController.cxx.

◆ waypointsChanged

void FlightPlanController::waypointsChanged ( )
signal

Friends And Related Symbol Documentation

◆ FPDelegate

friend class FPDelegate
friend

Definition at line 170 of file FlightPlanController.hxx.

Property Documentation

◆ aircraftType

QString FlightPlanController::aircraftType
readwrite

Definition at line 48 of file FlightPlanController.hxx.

◆ alternate

QmlPositioned* FlightPlanController::alternate
readwrite

Definition at line 71 of file FlightPlanController.hxx.

◆ callsign

QString FlightPlanController::callsign
readwrite

Definition at line 46 of file FlightPlanController.hxx.

◆ cruiseAltitude

QuantityValue FlightPlanController::cruiseAltitude
readwrite

Definition at line 66 of file FlightPlanController.hxx.

◆ cruiseSpeed

QuantityValue FlightPlanController::cruiseSpeed
readwrite

Definition at line 67 of file FlightPlanController.hxx.

◆ departure

QmlPositioned* FlightPlanController::departure
readwrite

Definition at line 69 of file FlightPlanController.hxx.

◆ description

QString FlightPlanController::description
read

Definition at line 44 of file FlightPlanController.hxx.

◆ destination

QmlPositioned* FlightPlanController::destination
readwrite

Definition at line 70 of file FlightPlanController.hxx.

◆ enabled

bool FlightPlanController::enabled

Definition at line 43 of file FlightPlanController.hxx.

◆ estimatedDurationMinutes

int FlightPlanController::estimatedDurationMinutes
readwrite

Definition at line 64 of file FlightPlanController.hxx.

◆ flightRules

FlightRules FlightPlanController::flightRules
readwrite

Definition at line 57 of file FlightPlanController.hxx.

◆ flightType

FlightType FlightPlanController::flightType
readwrite

Definition at line 58 of file FlightPlanController.hxx.

◆ icaoRoute

QString FlightPlanController::icaoRoute
read

Definition at line 52 of file FlightPlanController.hxx.

◆ legs

LegsModel* FlightPlanController::legs
read

Definition at line 50 of file FlightPlanController.hxx.

◆ remarks

QString FlightPlanController::remarks
readwrite

Definition at line 47 of file FlightPlanController.hxx.

◆ totalDistanceNm

QuantityValue FlightPlanController::totalDistanceNm
read

Definition at line 62 of file FlightPlanController.hxx.


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