swift
|
Class which can be directly used to access an. More...
Public Member Functions | |
virtual | ~CRemoteAircraftAware () |
Destructor. | |
CSimulatedAircraftList | getAircraftInRange () const |
All remote aircraft. More... | |
bool | isAircraftInRange (const aviation::CCallsign &callsign) const |
Is aircraft in range? More... | |
bool | isVtolAircraft (const aviation::CCallsign &callsign) const |
Is VTOL aircraft? More... | |
int | getAircraftInRangeCount () const |
Count remote aircraft. More... | |
aviation::CCallsignSet | getAircraftInRangeCallsigns () const |
Unique callsigns for aircraft in range. More... | |
CSimulatedAircraft | getAircraftInRangeForCallsign (const aviation::CCallsign &callsign) const |
Aircraft for callsign. More... | |
CAircraftModel | getAircraftInRangeModelForCallsign (const aviation::CCallsign &callsign) const |
Aircraft model for callsign. More... | |
CAirspaceAircraftSnapshot | getLatestAirspaceAircraftSnapshot () const |
Current snapshot. More... | |
aviation::CAircraftSituationList | remoteAircraftSituations (const aviation::CCallsign &callsign) const |
Rendered aircraft situations (per callsign, time history) More... | |
aviation::CAircraftSituation | remoteAircraftSituation (const aviation::CCallsign &callsign, int index) const |
Rendered aircraft situations (per callsign and index) More... | |
aviation::CAircraftSituationList | latestRemoteAircraftSituations () const |
Latest aircraft situation for all callsigns. More... | |
aviation::CAircraftSituationList | latestOnGroundProviderElevations () const |
Latest aircraft situation "on ground" having a provider elevation. More... | |
int | remoteAircraftSituationsCount (const aviation::CCallsign &callsign) const |
Number of remote aircraft situations for callsign. More... | |
aviation::CAircraftPartsList | remoteAircraftParts (const aviation::CCallsign &callsign) const |
All parts (per callsign, time history) More... | |
int | remoteAircraftPartsCount (const aviation::CCallsign &callsign) const |
All parts (per callsign, time history) More... | |
aviation::CAircraftSituationChangeList | remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const |
Aircraft changes. More... | |
aviation::CCallsignSet | remoteAircraftSupportingParts () const |
Remote aircraft supporting parts. More... | |
bool | isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const |
Is remote aircraft supporting parts? More... | |
int | getRemoteAircraftSupportingPartsCount () const |
Number of aircraft supporting parts. More... | |
bool | updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering) |
Enable/disable aircraft and follow up logic like sending signals. More... | |
bool | setAircraftEnabledFlag (const aviation::CCallsign &callsign, bool enabledForRendering) |
Just set enable/disable aircraft flag, no further logic. More... | |
bool | updateMultipleAircraftEnabled (const aviation::CCallsignSet &callsigns, bool enabledForRendering) |
Enable/disable aircraft. More... | |
bool | updateAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator) |
Change model. More... | |
bool | updateAircraftNetworkModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator) |
Change network model. More... | |
bool | updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered) |
Set aircraft rendered. More... | |
bool | updateMultipleAircraftRendered (const aviation::CCallsignSet &callsigns, bool rendered) |
Set aircraft rendered. More... | |
int | updateAircraftGroundElevation (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool *updateAircraftGroundElevation) |
Update the ground elevation. More... | |
bool | updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg) |
Update the CG. More... | |
aviation::CCallsignSet | updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg) |
Update the CG for this model string. More... | |
bool | updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString) |
Update the CG and model string. More... | |
void | updateMarkAllAsNotRendered () |
Mark all as not rendered. More... | |
int | aircraftSituationsAdded () const |
Number of situations added. More... | |
int | aircraftPartsAdded () const |
Number of parts added. More... | |
qint64 | situationsLastModified (const aviation::CCallsign &callsign) const |
When last modified. More... | |
qint64 | partsLastModified (const aviation::CCallsign &callsign) const |
When last modified. More... | |
geo::CElevationPlane | averageElevationOfNonMovingAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1) const |
Average elevation of aircraft in given range, which are NOT moving. More... | |
void | setRemoteAircraftProvider (IRemoteAircraftProvider *remoteAircraftProvider) |
Set remote aircraft provider. | |
IRemoteAircraftProvider * | getRemoteAircraftProvider () const |
Get the aircraft provider. | |
Protected Member Functions | |
CRemoteAircraftAware () | |
Default constructor. | |
CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider) | |
Constructor. | |
![]() | |
IProviderAware (IRemoteAircraftProvider *provider=nullptr) | |
Ctor. | |
virtual | ~IProviderAware () |
Dtor. | |
bool | hasProvider () const |
Has provider? | |
IRemoteAircraftProvider * | getProvider () const |
Provider. | |
void | setProvider (IRemoteAircraftProvider *provider) |
Set the provider. More... | |
IRemoteAircraftProvider * | provider () |
Provider. | |
const IRemoteAircraftProvider * | provider () const |
Const provider. | |
Class which can be directly used to access an.
Definition at line 564 of file remoteaircraftprovider.h.
int swift::misc::simulation::CRemoteAircraftAware::aircraftPartsAdded | ( | ) | const |
Number of parts added.
Definition at line 1136 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::aircraftSituationsAdded | ( | ) | const |
Number of situations added.
Definition at line 1130 of file remoteaircraftprovider.cpp.
CElevationPlane swift::misc::simulation::CRemoteAircraftAware::averageElevationOfNonMovingAircraft | ( | const aviation::CAircraftSituation & | reference, |
const physical_quantities::CLength & | range, | ||
int | minValues = 1 |
||
) | const |
Average elevation of aircraft in given range, which are NOT moving.
Definition at line 1154 of file remoteaircraftprovider.cpp.
CSimulatedAircraftList swift::misc::simulation::CRemoteAircraftAware::getAircraftInRange | ( | ) | const |
All remote aircraft.
Definition at line 967 of file remoteaircraftprovider.cpp.
CCallsignSet swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeCallsigns | ( | ) | const |
Unique callsigns for aircraft in range.
Definition at line 991 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeCount | ( | ) | const |
Count remote aircraft.
Definition at line 985 of file remoteaircraftprovider.cpp.
CSimulatedAircraft swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeForCallsign | ( | const aviation::CCallsign & | callsign | ) | const |
Aircraft for callsign.
Definition at line 997 of file remoteaircraftprovider.cpp.
CAircraftModel swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeModelForCallsign | ( | const aviation::CCallsign & | callsign | ) | const |
Aircraft model for callsign.
Definition at line 1003 of file remoteaircraftprovider.cpp.
CAirspaceAircraftSnapshot swift::misc::simulation::CRemoteAircraftAware::getLatestAirspaceAircraftSnapshot | ( | ) | const |
Current snapshot.
Definition at line 1009 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::getRemoteAircraftSupportingPartsCount | ( | ) | const |
Number of aircraft supporting parts.
Definition at line 1167 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::isAircraftInRange | ( | const aviation::CCallsign & | callsign | ) | const |
Is aircraft in range?
Definition at line 973 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::isRemoteAircraftSupportingParts | ( | const aviation::CCallsign & | callsign | ) | const |
Is remote aircraft supporting parts?
Definition at line 1161 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::isVtolAircraft | ( | const aviation::CCallsign & | callsign | ) | const |
Is VTOL aircraft?
Definition at line 979 of file remoteaircraftprovider.cpp.
CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::latestOnGroundProviderElevations | ( | ) | const |
Latest aircraft situation "on ground" having a provider elevation.
Definition at line 1034 of file remoteaircraftprovider.cpp.
CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::latestRemoteAircraftSituations | ( | ) | const |
Latest aircraft situation for all callsigns.
Definition at line 1028 of file remoteaircraftprovider.cpp.
qint64 swift::misc::simulation::CRemoteAircraftAware::partsLastModified | ( | const aviation::CCallsign & | callsign | ) | const |
When last modified.
Definition at line 1148 of file remoteaircraftprovider.cpp.
CAircraftPartsList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftParts | ( | const aviation::CCallsign & | callsign | ) | const |
All parts (per callsign, time history)
Definition at line 1046 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::remoteAircraftPartsCount | ( | const aviation::CCallsign & | callsign | ) | const |
All parts (per callsign, time history)
Definition at line 1052 of file remoteaircraftprovider.cpp.
CAircraftSituation swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituation | ( | const aviation::CCallsign & | callsign, |
int | index | ||
) | const |
Rendered aircraft situations (per callsign and index)
callsign | |
index | 0..latest, 1..next older, ... |
Definition at line 1022 of file remoteaircraftprovider.cpp.
CAircraftSituationChangeList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituationChanges | ( | const aviation::CCallsign & | callsign | ) | const |
Aircraft changes.
Definition at line 1040 of file remoteaircraftprovider.cpp.
CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituations | ( | const aviation::CCallsign & | callsign | ) | const |
Rendered aircraft situations (per callsign, time history)
Definition at line 1016 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituationsCount | ( | const aviation::CCallsign & | callsign | ) | const |
Number of remote aircraft situations for callsign.
Definition at line 1064 of file remoteaircraftprovider.cpp.
CCallsignSet swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSupportingParts | ( | ) | const |
Remote aircraft supporting parts.
Definition at line 1058 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::setAircraftEnabledFlag | ( | const aviation::CCallsign & | callsign, |
bool | enabledForRendering | ||
) |
Just set enable/disable aircraft flag, no further logic.
Definition at line 1179 of file remoteaircraftprovider.cpp.
qint64 swift::misc::simulation::CRemoteAircraftAware::situationsLastModified | ( | const aviation::CCallsign & | callsign | ) | const |
When last modified.
Definition at line 1142 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftEnabled | ( | const aviation::CCallsign & | callsign, |
bool | enabledForRendering | ||
) |
Enable/disable aircraft and follow up logic like sending signals.
Definition at line 1173 of file remoteaircraftprovider.cpp.
int swift::misc::simulation::CRemoteAircraftAware::updateAircraftGroundElevation | ( | const aviation::CCallsign & | callsign, |
const geo::CElevationPlane & | elevation, | ||
aviation::CAircraftSituation::GndElevationInfo | info, | ||
bool * | updateAircraftGroundElevation | ||
) |
Update the ground elevation.
Definition at line 1096 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftModel | ( | const aviation::CCallsign & | callsign, |
const CAircraftModel & | model, | ||
const CIdentifier & | originator | ||
) |
Change model.
Definition at line 1070 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftNetworkModel | ( | const aviation::CCallsign & | callsign, |
const CAircraftModel & | model, | ||
const CIdentifier & | originator | ||
) |
Change network model.
Definition at line 1077 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftRendered | ( | const aviation::CCallsign & | callsign, |
bool | rendered | ||
) |
Set aircraft rendered.
Definition at line 1084 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateCG | ( | const aviation::CCallsign & | callsign, |
const physical_quantities::CLength & | cg | ||
) |
Update the CG.
Definition at line 1105 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateCGAndModelString | ( | const aviation::CCallsign & | callsign, |
const physical_quantities::CLength & | cg, | ||
const QString & | modelString | ||
) |
Update the CG and model string.
Definition at line 1117 of file remoteaircraftprovider.cpp.
CCallsignSet swift::misc::simulation::CRemoteAircraftAware::updateCGForModel | ( | const QString & | modelString, |
const physical_quantities::CLength & | cg | ||
) |
Update the CG for this model string.
Definition at line 1111 of file remoteaircraftprovider.cpp.
void swift::misc::simulation::CRemoteAircraftAware::updateMarkAllAsNotRendered | ( | ) |
Mark all as not rendered.
Definition at line 1124 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateMultipleAircraftEnabled | ( | const aviation::CCallsignSet & | callsigns, |
bool | enabledForRendering | ||
) |
Enable/disable aircraft.
Definition at line 1185 of file remoteaircraftprovider.cpp.
bool swift::misc::simulation::CRemoteAircraftAware::updateMultipleAircraftRendered | ( | const aviation::CCallsignSet & | callsigns, |
bool | rendered | ||
) |
Set aircraft rendered.
Definition at line 1090 of file remoteaircraftprovider.cpp.