swift
|
Class which can be directly used to access an. More...
Public Member Functions | |
void | setSimulationEnvironmentProvider (ISimulationEnvironmentProvider *provider) |
Set the provider. | |
geo::CElevationPlane | findClosestElevationWithinRange (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range) const |
Find closest elevation (or return NULL) More... | |
geo::CElevationPlane | findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign) |
Find closest elevation or request elevation. More... | |
geo::CElevationPlane | averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const |
Average elevation of "on ground" cached values. More... | |
aviation::CAltitude | highestElevation () const |
Highest elevation. More... | |
bool | requestElevation (const geo::ICoordinateGeodetic &reference, const aviation::CCallsign &callsign) |
Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
bool | requestElevation (const aviation::CAircraftSituation &situation) |
Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
QPair< int, int > | getElevationsFoundMissed () const |
Elevations found/missed statistics. More... | |
QString | getElevationsFoundMissedInfo () const |
Elevations found/missed statistics info as string. More... | |
QPair< qint64, qint64 > | getElevationRequestTimes () const |
The elevation request times. More... | |
QString | getElevationRequestTimesInfo () const |
Elevation request times. More... | |
CSimulatorPluginInfo | getSimulatorPluginInfo () const |
Get the represented plugin. More... | |
CSimulatorInfo | getSimulatorInfo () const |
Get the represented plugin. More... | |
QString | getSimulatorNameAndVersion () const |
Version and simulator details info. More... | |
CAircraftModel | getDefaultModel () const |
Default model. More... | |
physical_quantities::CLength | getSimulatorCG (const aviation::CCallsign &callsign) const |
Get CG per callsign, NULL if not found. More... | |
physical_quantities::CLength | getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const |
Get CG per callsign, NULL if not found. More... | |
bool | hasSimulatorCG (const aviation::CCallsign &callsign) const |
Has a CG? More... | |
bool | cleanElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, bool forced=false) |
Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached. More... | |
Protected Member Functions | |
CSimulationEnvironmentAware () | |
Default constructor. | |
CSimulationEnvironmentAware (ISimulationEnvironmentProvider *simEnvProvider) | |
Constructor. | |
![]() | |
IProviderAware (ISimulationEnvironmentProvider *provider=nullptr) | |
Ctor. | |
virtual | ~IProviderAware () |
Dtor. | |
bool | hasProvider () const |
Has provider? | |
ISimulationEnvironmentProvider * | getProvider () const |
Provider. | |
void | setProvider (ISimulationEnvironmentProvider *provider) |
Set the provider. More... | |
ISimulationEnvironmentProvider * | provider () |
Provider. | |
const ISimulationEnvironmentProvider * | provider () const |
Const provider. | |
Class which can be directly used to access an.
Definition at line 336 of file simulationenvironmentprovider.h.
CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::averageElevationOfOnGroundAircraft | ( | const aviation::CAircraftSituation & | reference, |
const physical_quantities::CLength & | range, | ||
int | minValues, | ||
int | sufficientValues | ||
) | const |
Average elevation of "on ground" cached values.
Definition at line 763 of file simulationenvironmentprovider.cpp.
bool swift::misc::simulation::CSimulationEnvironmentAware::cleanElevationValues | ( | const aviation::CAircraftSituation & | reference, |
const physical_quantities::CLength & | range, | ||
bool | forced = false |
||
) |
Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached.
Definition at line 854 of file simulationenvironmentprovider.cpp.
CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::findClosestElevationWithinRange | ( | const geo::ICoordinateGeodetic & | reference, |
const physical_quantities::CLength & | range | ||
) | const |
Find closest elevation (or return NULL)
Definition at line 749 of file simulationenvironmentprovider.cpp.
CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::findClosestElevationWithinRangeOrRequest | ( | const geo::ICoordinateGeodetic & | reference, |
const physical_quantities::CLength & | range, | ||
const aviation::CCallsign & | callsign | ||
) |
Find closest elevation or request elevation.
Definition at line 756 of file simulationenvironmentprovider.cpp.
CAircraftModel swift::misc::simulation::CSimulationEnvironmentAware::getDefaultModel | ( | ) | const |
Default model.
Definition at line 830 of file simulationenvironmentprovider.cpp.
QPair< qint64, qint64 > swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimes | ( | ) | const |
The elevation request times.
Definition at line 800 of file simulationenvironmentprovider.cpp.
QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimesInfo | ( | ) | const |
Elevation request times.
Definition at line 806 of file simulationenvironmentprovider.cpp.
QPair< int, int > swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissed | ( | ) | const |
Elevations found/missed statistics.
Definition at line 788 of file simulationenvironmentprovider.cpp.
QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissedInfo | ( | ) | const |
Elevations found/missed statistics info as string.
Definition at line 794 of file simulationenvironmentprovider.cpp.
CLength swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorCG | ( | const aviation::CCallsign & | callsign | ) | const |
Get CG per callsign, NULL if not found.
Definition at line 836 of file simulationenvironmentprovider.cpp.
CSimulatorInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorInfo | ( | ) | const |
Get the represented plugin.
Definition at line 818 of file simulationenvironmentprovider.cpp.
QString swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorNameAndVersion | ( | ) | const |
Version and simulator details info.
Definition at line 824 of file simulationenvironmentprovider.cpp.
CLength swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorOrDbCG | ( | const aviation::CCallsign & | callsign, |
const physical_quantities::CLength & | dbCG | ||
) | const |
Get CG per callsign, NULL if not found.
Definition at line 842 of file simulationenvironmentprovider.cpp.
CSimulatorPluginInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorPluginInfo | ( | ) | const |
Get the represented plugin.
Definition at line 812 of file simulationenvironmentprovider.cpp.
bool swift::misc::simulation::CSimulationEnvironmentAware::hasSimulatorCG | ( | const aviation::CCallsign & | callsign | ) | const |
Has a CG?
Definition at line 848 of file simulationenvironmentprovider.cpp.
CAltitude swift::misc::simulation::CSimulationEnvironmentAware::highestElevation | ( | ) | const |
Highest elevation.
Definition at line 771 of file simulationenvironmentprovider.cpp.
bool swift::misc::simulation::CSimulationEnvironmentAware::requestElevation | ( | const aviation::CAircraftSituation & | situation | ) |
Request elevation, there is no guarantee the requested elevation will be available in the provider.
Definition at line 783 of file simulationenvironmentprovider.cpp.
bool swift::misc::simulation::CSimulationEnvironmentAware::requestElevation | ( | const geo::ICoordinateGeodetic & | reference, |
const aviation::CCallsign & | callsign | ||
) |
Request elevation, there is no guarantee the requested elevation will be available in the provider.
Definition at line 777 of file simulationenvironmentprovider.cpp.