|
swift
|
Class which can be directly used to access an. More...
#include <simulationenvironmentprovider.h>
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). | |
| geo::CElevationPlane | findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign) |
| Find closest elevation or request elevation. | |
| geo::CElevationPlane | averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const |
| Average elevation of "on ground" cached values. | |
| aviation::CAltitude | highestElevation () const |
| Highest elevation. | |
| 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. | |
| bool | requestElevation (const aviation::CAircraftSituation &situation) |
| Request elevation, there is no guarantee the requested elevation will be available in the provider. | |
| QPair< int, int > | getElevationsFoundMissed () const |
| Elevations found/missed statistics. | |
| QString | getElevationsFoundMissedInfo () const |
| Elevations found/missed statistics info as string. | |
| QPair< qint64, qint64 > | getElevationRequestTimes () const |
| The elevation request times. | |
| QString | getElevationRequestTimesInfo () const |
| Elevation request times. | |
| CSimulatorPluginInfo | getSimulatorPluginInfo () const |
| Get the represented plugin. | |
| CSimulatorInfo | getSimulatorInfo () const |
| Get the represented plugin. | |
| QString | getSimulatorNameAndVersion () const |
| Version and simulator details info. | |
| CAircraftModel | getDefaultModel () const |
| Default model. | |
| physical_quantities::CLength | getSimulatorCG (const aviation::CCallsign &callsign) const |
| Get CG per callsign, NULL if not found. | |
| physical_quantities::CLength | getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const |
| Get CG per callsign, NULL if not found. | |
| bool | hasSimulatorCG (const aviation::CCallsign &callsign) const |
| Has a CG? | |
| 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. | |
Protected Member Functions | |
| CSimulationEnvironmentAware () | |
| Default constructor. | |
| CSimulationEnvironmentAware (ISimulationEnvironmentProvider *simEnvProvider) | |
| Constructor. | |
| Protected Member Functions inherited from swift::misc::IProviderAware< ISimulationEnvironmentProvider > | |
| IProviderAware (ISimulationEnvironmentProvider *provider=nullptr) | |
| Ctor. | |
| virtual | ~IProviderAware ()=default |
| Dtor. | |
| bool | hasProvider () const |
| Has provider? | |
| ISimulationEnvironmentProvider * | getProvider () const |
| Provider. | |
| void | setProvider (ISimulationEnvironmentProvider *provider) |
| Set the provider. | |
| ISimulationEnvironmentProvider * | provider () |
| Provider. | |
Class which can be directly used to access an.
Definition at line 336 of file simulationenvironmentprovider.h.
|
inlineprotected |
Default constructor.
Definition at line 407 of file simulationenvironmentprovider.h.
|
inlineprotected |
Constructor.
Definition at line 410 of file simulationenvironmentprovider.h.
|
privatevirtual |
Definition at line 884 of file simulationenvironmentprovider.cpp.
| 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 907 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 1040 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 887 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 897 of file simulationenvironmentprovider.cpp.
| CAircraftModel swift::misc::simulation::CSimulationEnvironmentAware::getDefaultModel | ( | ) | const |
Default model.
Definition at line 1004 of file simulationenvironmentprovider.cpp.
| QPair< qint64, qint64 > swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimes | ( | ) | const |
The elevation request times.
Definition at line 959 of file simulationenvironmentprovider.cpp.
| QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimesInfo | ( | ) | const |
Elevation request times.
Definition at line 968 of file simulationenvironmentprovider.cpp.
| QPair< int, int > swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissed | ( | ) | const |
Elevations found/missed statistics.
Definition at line 941 of file simulationenvironmentprovider.cpp.
| QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissedInfo | ( | ) | const |
Elevations found/missed statistics info as string.
Definition at line 950 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 1013 of file simulationenvironmentprovider.cpp.
| CSimulatorInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorInfo | ( | ) | const |
Get the represented plugin.
Definition at line 986 of file simulationenvironmentprovider.cpp.
| QString swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorNameAndVersion | ( | ) | const |
Version and simulator details info.
Definition at line 995 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 1022 of file simulationenvironmentprovider.cpp.
| CSimulatorPluginInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorPluginInfo | ( | ) | const |
Get the represented plugin.
Definition at line 977 of file simulationenvironmentprovider.cpp.
| bool swift::misc::simulation::CSimulationEnvironmentAware::hasSimulatorCG | ( | const aviation::CCallsign & | callsign | ) | const |
Has a CG?
Definition at line 1031 of file simulationenvironmentprovider.cpp.
| CAltitude swift::misc::simulation::CSimulationEnvironmentAware::highestElevation | ( | ) | const |
Highest elevation.
Definition at line 918 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 936 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 927 of file simulationenvironmentprovider.cpp.
|
inline |
Set the provider.
Definition at line 342 of file simulationenvironmentprovider.h.