mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T111, access to own aircraft`s situation
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a1357f0bd7
commit
b423a62626
@@ -91,6 +91,12 @@ namespace BlackCore
|
||||
return this->m_ownAircraft.getPosition();
|
||||
}
|
||||
|
||||
CAircraftSituation CContextOwnAircraft::getOwnAircraftSituation() const
|
||||
{
|
||||
QReadLocker l(&m_lockAircraft);
|
||||
return this->m_ownAircraft.getSituation();
|
||||
}
|
||||
|
||||
CAircraftParts CContextOwnAircraft::getOwnAircraftParts() const
|
||||
{
|
||||
QReadLocker l(&m_lockAircraft);
|
||||
|
||||
@@ -72,10 +72,15 @@ namespace BlackCore
|
||||
virtual ~CContextOwnAircraft();
|
||||
|
||||
// IOwnAircraftProvider overrides
|
||||
//! \copydoc BlackMisc::Simulation::IOwnAircraftProvider::getOwnAircraftParts
|
||||
//! \ingroup ownaircraftprovider
|
||||
//! @{
|
||||
virtual BlackMisc::Geo::CCoordinateGeodetic getOwnAircraftPosition() const override;
|
||||
|
||||
//! Own aircraft's situation
|
||||
//! \copydoc BlackMisc::Simulation::IOwnAircraftProvider::getOwnAircraftParts
|
||||
//! \ingroup ownaircraftprovider
|
||||
virtual BlackMisc::Aviation::CAircraftSituation getOwnAircraftSituation() const override;
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::IOwnAircraftProvider::getOwnAircraftParts
|
||||
//! \ingroup ownaircraftprovider
|
||||
virtual BlackMisc::Aviation::CAircraftParts getOwnAircraftParts() const override;
|
||||
|
||||
Reference in New Issue
Block a user