swift
Public Slots | Public Member Functions | Protected Member Functions | Friends | List of all members
swift::core::context::CContextOwnAircraft Class Reference

Own aircraft context implementation. Central instance of data for. More...

Inheritance diagram for swift::core::context::CContextOwnAircraft:
[legend]

Public Slots

swift::misc::simulation::CSimulatedAircraft getOwnAircraft () const
 Get own aircraft. More...
 
swift::misc::aviation::CComSystem getOwnComSystem (swift::misc::aviation::CComSystem::ComUnit unit) const
 Get own COM system. More...
 
swift::misc::aviation::CTransponder getOwnTransponder () const
 Get own transponder. More...
 
swift::misc::aviation::CAircraftSituation getOwnAircraftSituation () const
 Get own aircraft. More...
 
bool updateOwnCallsign (const swift::misc::aviation::CCallsign &callsign)
 Set callsign. More...
 
bool updateOwnIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
 Set ICAO data. More...
 
bool updateOwnPosition (const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)
 Update position. More...
 
bool updateCockpit (const swift::misc::aviation::CComSystem &com1, const swift::misc::aviation::CComSystem &com2, const swift::misc::aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)
 Update own cockpit. More...
 
bool updateTransponderMode (const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)
 Update own transponder mode. More...
 
bool updateSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Own SELCAL code. More...
 
bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Tune in a COM frequency (active) More...
 
bool updateStandbyComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Tune in a COM frequency (standby) More...
 
bool updateOwnAircraftPilot (const swift::misc::network::CUser &pilot)
 Set current pilot. More...
 
void toggleTransponderMode ()
 Toggle XPDR mode. More...
 
bool setTransponderMode (swift::misc::aviation::CTransponder::TransponderMode mode)
 Set XPDR mode. More...
 
bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Parse a given command line. More...
 
static void registerHelp ()
 Register help.
 
- Public Slots inherited from swift::core::context::IContextOwnAircraft
virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft () const =0
 Get own aircraft.
 
virtual swift::misc::aviation::CComSystem getOwnComSystem (swift::misc::aviation::CComSystem::ComUnit unit) const =0
 Get own COM system.
 
virtual swift::misc::aviation::CTransponder getOwnTransponder () const =0
 Get own transponder.
 
virtual swift::misc::aviation::CAircraftSituation getOwnAircraftSituation () const =0
 Get own aircraft.
 
virtual bool updateOwnPosition (const swift::misc::geo::CCoordinateGeodetic &position, const swift::misc::aviation::CAltitude &altitude, const swift::misc::aviation::CAltitude &pressureAltitude)=0
 Update position. More...
 
virtual bool updateCockpit (const swift::misc::aviation::CComSystem &com1, const swift::misc::aviation::CComSystem &com2, const swift::misc::aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)=0
 Update own cockpit.
 
virtual bool updateTransponderMode (const swift::misc::aviation::CTransponder::TransponderMode &transponderMode, const swift::misc::CIdentifier &originator)=0
 Update own transponder mode.
 
virtual void toggleTransponderMode ()=0
 Toggle XPDR mode.
 
virtual bool setTransponderMode (swift::misc::aviation::CTransponder::TransponderMode mode)=0
 Set XPDR mode.
 
virtual bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0
 Tune in a COM frequency (active)
 
virtual bool updateStandbyComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0
 Tune in a COM frequency (standby)
 
virtual bool updateOwnAircraftPilot (const swift::misc::network::CUser &pilot)=0
 Set current pilot.
 
virtual bool updateOwnIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)=0
 Set ICAO data.
 
virtual bool updateOwnCallsign (const swift::misc::aviation::CCallsign &callsign)=0
 Set callsign.
 
virtual bool updateSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0
 Own SELCAL code.
 
static const swift::misc::aviation::CAircraftSituation & getDefaultSituation ()
 Default situation. More...
 
static swift::misc::simulation::CAircraftModel getDefaultOwnAircraftModel ()
 Default own aircraft. More...
 

Public Member Functions

 ~CContextOwnAircraft ()=default
 Destructor.
 
swift::misc::aviation::CCallsign getOwnCallsign () const
 Own aircraft's callsign. More...
 
swift::misc::geo::CCoordinateGeodetic getOwnAircraftPosition () const
 Own aircraft's position. More...
 
swift::misc::aviation::CAircraftParts getOwnAircraftParts () const
 Own aircraft's parts. More...
 
swift::misc::simulation::CAircraftModel getOwnAircraftModel () const
 Own aircraft model. More...
 
swift::misc::physical_quantities::CLength getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const
 Distance to own aircraft. More...
 
bool updateOwnModel (const swift::misc::simulation::CAircraftModel &model)
 Update model. More...
 
bool updateOwnSituation (const swift::misc::aviation::CAircraftSituation &situation)
 Update own situation. More...
 
bool updateOwnParts (const swift::misc::aviation::CAircraftParts &parts)
 Update own parts. More...
 
bool updateOwnCG (const swift::misc::physical_quantities::CLength &cg)
 Update own parts. More...
 
QObject * asQObject ()
 Return as QObject. More...
 
- Public Member Functions inherited from swift::core::context::IContextOwnAircraft
QString getPathAndContextId () const
 Id and path name for round trip protection. More...
 
 ~IContextOwnAircraft ()=default
 Destructor.
 
- Public Member Functions inherited from swift::core::context::IContext
 ~IContext ()=default
 Destructor.
 
bool isUsingImplementingObject () const
 Using local implementing object?
 
bool isLocalObject () const
 Local or remote object?
 
bool isEmptyObject () const
 Empty object?
 
CCoreFacade * getRuntime ()
 Runtime.
 
const CCoreFacade * getRuntime () const
 Const runtime.
 
CCoreFacadeConfig::ContextMode getMode () const
 Mode.
 
qint64 getUniqueId () const
 Unique id.
 
const IContextApplication * getIContextApplication () const
 Context for application.
 
IContextApplication * getIContextApplication ()
 Application.
 
IContextAudio * getIContextAudio ()
 Context for network.
 
const IContextAudio * getIContextAudio () const
 Context for network.
 
IContextNetwork * getIContextNetwork ()
 Context for network.
 
const IContextNetwork * getIContextNetwork () const
 Context for network.
 
IContextOwnAircraft * getIContextOwnAircraft ()
 Context for own aircraft.
 
const IContextOwnAircraft * getIContextOwnAircraft () const
 Context for own aircraft.
 
const IContextSimulator * getIContextSimulator () const
 Context for simulator.
 
IContextSimulator * getIContextSimulator ()
 Simulator.
 
void setDebugEnabled (bool debug)
 Set debug flag.
 
bool isDebugEnabled () const
 Debug enabled?
 
virtual bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)=0
 Parse a given command line.
 
- Public Member Functions inherited from QObject
QBindable< QString > bindableObjectName ()
 
 QObject (QObject *parent)
 
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUMS (...)
 
 Q_ENUM_NS (...)
 
 Q_FLAG (...)
 
 Q_FLAGS (...)
 
 Q_FLAG_NS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
T qobject_cast (QObject *object)
 
T qobject_cast (const QObject *object)
 
bool blockSignals (bool block)
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
bool moveToThread (QThread *targetThread)
 
bool setProperty (const char *name, QVariant &&value)
 
bool setProperty (const char *name, const QVariant &value)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
void installEventFilter (QObject *filterObj)
 
void killTimer (Qt::TimerId id)
 
void killTimer (int id)
 
void objectNameChanged (const QString &objectName)
 
void removeEventFilter (QObject *obj)
 
void setObjectName (QAnyStringView name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
QList< QByteArray > dynamicPropertyNames () const const
 
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
QObject * parent () const const
 
QString objectName () const const
 
QThread * thread () const const
 
QVariant property (const char *name) const const
 
T findChild (QAnyStringView name, Qt::FindChildOptions options) const const
 
T findChild (Qt::FindChildOptions options) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool inherits (const char *className) const const
 
bool isQmlExposed () const const
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
virtual const QMetaObject * metaObject () const const
 
const QObjectList & children () const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
- Public Member Functions inherited from swift::misc::simulation::IOwnAircraftProvider
virtual CSimulatedAircraft getOwnAircraft () const =0
 Own aircraft. More...
 
virtual aviation::CComSystem getOwnComSystem (aviation::CComSystem::ComUnit unit) const =0
 Own aircraft COM unit. More...
 
virtual aviation::CTransponder getOwnTransponder () const =0
 Own aircraft XPDR. More...
 
virtual aviation::CAircraftSituation getOwnAircraftSituation () const =0
 Own aircraft's situation. More...
 
virtual bool updateOwnCallsign (const aviation::CCallsign &callsign)=0
 Update aircraft's callsign. More...
 
virtual bool updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode)=0
 Update ICAO data. More...
 
bool updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
virtual bool updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)=0
 Update cockpit, but only send signals when applicable. More...
 
virtual bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)=0
 Update cockpit, but only send signals when applicable. More...
 
virtual bool updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0
 Update cockpit, but only send signals when applicable. More...
 
- Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()=default
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvider & operator= (const IProvider &)=delete
 Copy assignment operator.
 
- Public Member Functions inherited from swift::misc::CIdentifiable
const CIdentifier & identifier () const
 Get identifier.
 
void setIdentifier (const CIdentifier &identifier)
 Set identifier, allows to set an external identifier.
 
bool isMyIdentifier (const CIdentifier &otherIdentifier) const
 My identifier?
 

Protected Member Functions

 CContextOwnAircraft (CCoreFacadeConfig::ContextMode, CCoreFacade *runtime)
 Constructor, with link to runtime.
 
- Protected Member Functions inherited from swift::core::context::IContextOwnAircraft
 IContextOwnAircraft (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
 Constructor.
 
- Protected Member Functions inherited from swift::core::context::IContext
 IContext (CCoreFacadeConfig::ContextMode mode, QObject *parent)
 Constructor.
 
QString buildPathAndContextId (const QString &path) const
 Path and context id.
 
void relayBaseClassSignals (const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName)
 Relay signals from this class.
 
void logEmptyContextWarning (const QString &functionName) const
 Empty context called.
 
virtual void onAboutToShutdown ()
 Called when shutdown is about to be called.
 
void registerWithDBus (const QString &objectPath, misc::CDBusServer *server)
 Register myself in DBus.
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
virtual void timerEvent (QTimerEvent *event)
 
QObject * sender () const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
int senderSignalIndex () const const
 
- Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.
 
- Protected Member Functions inherited from swift::misc::CIdentifiable
 CIdentifiable (const QString &objectName)
 Use literal based object name.
 
 CIdentifiable (QObject *nameProvider)
 Connect with QObject providing the name.
 
 CIdentifiable ()
 Construct without a name.
 
 ~CIdentifiable ()
 Destructor.
 
 CIdentifiable (const CIdentifiable &)=default
 Copy constructor.
 
CIdentifiable & operator= (const CIdentifiable &)=default
 Copy assignment operator.
 

Friends

class swift::core::CCoreFacade
 
class IContextOwnAircraft
 

Additional Inherited Members

- Public Types inherited from QObject
enum  TimerId
 
- Signals inherited from swift::core::context::IContextOwnAircraft
void changedAircraftCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 Aircraft cockpit update.
 
void changedSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Changed SELCAL code.
 
void changedCallsign (const swift::misc::aviation::CCallsign &callsign)
 Own callsign was changed.
 
void changedAircraftIcaoCodes (const swift::misc::aviation::CAircraftIcaoCode &aircraftIcaoCode, const swift::misc::aviation::CAirlineIcaoCode &airlineIcaoCode)
 Own ICAO was changed.
 
void changedPilot (const swift::misc::network::CUser &pilot)
 Own pilot (aka the swift user) changed.
 
void movedAircraft (const swift::misc::physical_quantities::CLength &distance)
 Aircraft has been moved from one location to another (changed scenery)
 
- Signals inherited from swift::core::context::IContext
void changedLogOrDebugSettings ()
 Log or debug values changed.
 
- Static Public Member Functions inherited from swift::core::context::IContextOwnAircraft
static const QString & InterfaceName ()
 DBus interface name.
 
static const QString & ObjectPath ()
 DBus object path.
 
static IContextOwnAircraft * create (CCoreFacade *parent, CCoreFacadeConfig::ContextMode mode, swift::misc::CDBusServer *server, QDBusConnection &connection)
 Factory method.
 
- Static Public Member Functions inherited from swift::core::context::IContext
static const QStringList & getLogCategories ()
 Log categories.
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 
- Static Protected Member Functions inherited from swift::core::context::IContext
static const misc::CStatusMessage & statusMessageEmptyContext ()
 Standard message when status message is returned in empty context.
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Own aircraft context implementation. Central instance of data for.

See also
IOwnAircraftProvider .

Definition at line 62 of file contextownaircraftimpl.h.

Member Function Documentation

◆ asQObject()

QObject* swift::core::context::CContextOwnAircraft::asQObject ( )
inlinevirtual

Return as QObject.

Reimplemented from swift::misc::IProvider.

Definition at line 118 of file contextownaircraftimpl.h.

◆ getDistanceToOwnAircraft()

CLength swift::core::context::CContextOwnAircraft::getDistanceToOwnAircraft ( const swift::misc::geo::ICoordinateGeodetic &  position) const
virtual

Distance to own aircraft.

Remarks
This function is thread safe.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 124 of file contextownaircraftimpl.cpp.

◆ getOwnAircraft

CSimulatedAircraft swift::core::context::CContextOwnAircraft::getOwnAircraft ( ) const
slot

Get own aircraft.

Definition at line 73 of file contextownaircraftimpl.cpp.

◆ getOwnAircraftModel()

CAircraftModel swift::core::context::CContextOwnAircraft::getOwnAircraftModel ( ) const
virtual

Own aircraft model.

Remarks
This function is thread safe.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 118 of file contextownaircraftimpl.cpp.

◆ getOwnAircraftParts()

CAircraftParts swift::core::context::CContextOwnAircraft::getOwnAircraftParts ( ) const
virtual

Own aircraft's parts.

Remarks
This function is thread safe.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 112 of file contextownaircraftimpl.cpp.

◆ getOwnAircraftPosition()

CCoordinateGeodetic swift::core::context::CContextOwnAircraft::getOwnAircraftPosition ( ) const
virtual

Own aircraft's position.

Remarks
This function is thread safe.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 100 of file contextownaircraftimpl.cpp.

◆ getOwnAircraftSituation

CAircraftSituation swift::core::context::CContextOwnAircraft::getOwnAircraftSituation ( ) const
slot

Get own aircraft.

Definition at line 106 of file contextownaircraftimpl.cpp.

◆ getOwnCallsign()

CCallsign swift::core::context::CContextOwnAircraft::getOwnCallsign ( ) const
virtual

Own aircraft's callsign.

Remarks
This function is thread safe.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 94 of file contextownaircraftimpl.cpp.

◆ getOwnComSystem

CComSystem swift::core::context::CContextOwnAircraft::getOwnComSystem ( swift::misc::aviation::CComSystem::ComUnit  unit) const
slot

Get own COM system.

Definition at line 80 of file contextownaircraftimpl.cpp.

◆ getOwnTransponder

CTransponder swift::core::context::CContextOwnAircraft::getOwnTransponder ( ) const
slot

Get own transponder.

Definition at line 87 of file contextownaircraftimpl.cpp.

◆ setTransponderMode

bool swift::core::context::CContextOwnAircraft::setTransponderMode ( swift::misc::aviation::CTransponder::TransponderMode  mode)
slot

Set XPDR mode.

Definition at line 379 of file contextownaircraftimpl.cpp.

◆ toggleTransponderMode

void swift::core::context::CContextOwnAircraft::toggleTransponderMode ( )
slot

Toggle XPDR mode.

Definition at line 364 of file contextownaircraftimpl.cpp.

◆ updateActiveComFrequency

bool swift::core::context::CContextOwnAircraft::updateActiveComFrequency ( const swift::misc::physical_quantities::CFrequency &  frequency,
swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::CIdentifier &  originator 
)
slot

Tune in a COM frequency (active)

Definition at line 313 of file contextownaircraftimpl.cpp.

◆ updateCockpit

bool swift::core::context::CContextOwnAircraft::updateCockpit ( const swift::misc::aviation::CComSystem &  com1,
const swift::misc::aviation::CComSystem &  com2,
const swift::misc::aviation::CTransponder &  transponder,
const swift::misc::CIdentifier &  originator 
)
slot

Update own cockpit.

Definition at line 280 of file contextownaircraftimpl.cpp.

◆ updateOwnAircraftPilot

bool swift::core::context::CContextOwnAircraft::updateOwnAircraftPilot ( const swift::misc::network::CUser &  pilot)
slot

Set current pilot.

Definition at line 353 of file contextownaircraftimpl.cpp.

◆ updateOwnCallsign

bool swift::core::context::CContextOwnAircraft::updateOwnCallsign ( const swift::misc::aviation::CCallsign &  callsign)
slot

Set callsign.

Definition at line 384 of file contextownaircraftimpl.cpp.

◆ updateOwnCG()

bool swift::core::context::CContextOwnAircraft::updateOwnCG ( const swift::misc::physical_quantities::CLength &  cg)
virtual

Update own parts.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 245 of file contextownaircraftimpl.cpp.

◆ updateOwnIcaoCodes

bool swift::core::context::CContextOwnAircraft::updateOwnIcaoCodes ( const swift::misc::aviation::CAircraftIcaoCode &  aircraftIcaoCode,
const swift::misc::aviation::CAirlineIcaoCode &  airlineIcaoCode 
)
slot

Set ICAO data.

Definition at line 395 of file contextownaircraftimpl.cpp.

◆ updateOwnModel()

bool swift::core::context::CContextOwnAircraft::updateOwnModel ( const swift::misc::simulation::CAircraftModel &  model)
virtual

Update model.

Remarks
This function is thread safe.
perform reverse lookup if possible

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 201 of file contextownaircraftimpl.cpp.

◆ updateOwnParts()

bool swift::core::context::CContextOwnAircraft::updateOwnParts ( const swift::misc::aviation::CAircraftParts &  parts)
virtual

Update own parts.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 236 of file contextownaircraftimpl.cpp.

◆ updateOwnPosition

bool swift::core::context::CContextOwnAircraft::updateOwnPosition ( const swift::misc::geo::CCoordinateGeodetic &  position,
const swift::misc::aviation::CAltitude &  altitude,
const swift::misc::aviation::CAltitude &  pressureAltitude 
)
slot

Update position.

Note
this is in
See also
IContextOwnAircraft as we want to set test positions from the GUI / elsewhere

Definition at line 254 of file contextownaircraftimpl.cpp.

◆ updateOwnSituation()

bool swift::core::context::CContextOwnAircraft::updateOwnSituation ( const swift::misc::aviation::CAircraftSituation &  situation)
virtual

Update own situation.

Implements swift::misc::simulation::IOwnAircraftProvider.

Definition at line 221 of file contextownaircraftimpl.cpp.

◆ updateSelcal

bool swift::core::context::CContextOwnAircraft::updateSelcal ( const swift::misc::aviation::CSelcal &  selcal,
const swift::misc::CIdentifier &  originator 
)
slot

Own SELCAL code.

Definition at line 406 of file contextownaircraftimpl.cpp.

◆ updateStandbyComFrequency

bool swift::core::context::CContextOwnAircraft::updateStandbyComFrequency ( const swift::misc::physical_quantities::CFrequency &  frequency,
swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::CIdentifier &  originator 
)
slot

Tune in a COM frequency (standby)

Definition at line 333 of file contextownaircraftimpl.cpp.

◆ updateTransponderMode

bool swift::core::context::CContextOwnAircraft::updateTransponderMode ( const swift::misc::aviation::CTransponder::TransponderMode &  transponderMode,
const swift::misc::CIdentifier &  originator 
)
slot

Update own transponder mode.

Definition at line 297 of file contextownaircraftimpl.cpp.


The documentation for this class was generated from the following files: