mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T259, Ref T243 misc. smaller improvements of simulator environment provider
This commit is contained in:
@@ -52,29 +52,39 @@ namespace BlackMisc
|
||||
CAircraftModel getDefaultModel() const;
|
||||
|
||||
//! Get CG per callsign, NULL if not found
|
||||
//! \threadsafe
|
||||
PhysicalQuantities::CLength getCG(const Aviation::CCallsign &callsign) const;
|
||||
|
||||
//! Has a CG?
|
||||
//! \threadsafe
|
||||
bool hasCG(const Aviation::CCallsign &callsign) const;
|
||||
|
||||
//! Has the same CG?
|
||||
//! \threadsafe
|
||||
bool hasSameCG(const PhysicalQuantities::CLength &cg, const Aviation::CCallsign &callsign) const;
|
||||
|
||||
protected:
|
||||
//! Ctor
|
||||
ISimulationEnvironmentProvider(const CSimulatorPluginInfo &pluginInfo);
|
||||
|
||||
//! New plugin info and default model
|
||||
//! \remark normally only used by emulated driver
|
||||
//! \threadsafe
|
||||
void setNewPluginInfo(const CSimulatorPluginInfo &info, const CAircraftModel &defaultModel);
|
||||
|
||||
//! Default model
|
||||
//! \threadsafe
|
||||
void setDefaultModel(const CAircraftModel &defaultModel);
|
||||
|
||||
//! Clear default model
|
||||
//! \threadsafe
|
||||
void clearDefaultModel();
|
||||
|
||||
//! Clear elevations
|
||||
void clearElevations();
|
||||
|
||||
//! Clear CGs
|
||||
//! \threadsafe
|
||||
void clearCGs();
|
||||
|
||||
//! Clear data
|
||||
@@ -102,6 +112,9 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
int removeCG(const Aviation::CCallsign &cs);
|
||||
|
||||
//! Min.range considered as single point
|
||||
static PhysicalQuantities::CLength minRange(const PhysicalQuantities::CLength &range);
|
||||
|
||||
static constexpr int MaxElevations = 1000; //!< How many elevations we keep
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user