swift
|
Proxy object connected to a real XSwiftBus::CTraffic object via DBus. More...
Public Types | |
using | ElevationCallback = std::function< void(const swift::misc::geo::CElevationPlane &, const swift::misc::aviation::CCallsign &, bool)> |
Elevation callback. | |
using | RemoteAircraftDataCallback = std::function< void(const QStringList &, const QDoubleList &, const QDoubleList &, const QDoubleList &, const QBoolList &, const QDoubleList &)> |
Remote aircrafts data callback. | |
Public Slots | |
MultiplayerAcquireInfo | acquireMultiplayerPlanes () |
Returns whether multiplayer planes have been acquired. If not, owner will be set to the plugin that acquired it. More... | |
bool | initialize () |
Initialize the multiplayer planes rendering and return true if successful. More... | |
void | cleanup () |
Reverse the actions of initialize(). More... | |
QString | loadPlanesPackage (const QString &path) |
Load a collection of planes from the given directory and return error message if unsuccessful. More... | |
void | setDefaultIcao (const QString &defaultIcao) |
Set the ICAO code to use for aircraft without a model match. More... | |
void | setMaxPlanes (int planes) |
Set the maximum number of aircraft. More... | |
void | setMaxDrawDistance (double nauticalMiles) |
Set the maximum distance at which to draw aircraft (nautical miles). More... | |
void | addPlane (const QString &callsign, const QString &modelName, const QString &aircraftIcao, const QString &airlineIcao, const QString &livery) |
Introduce a new traffic aircraft. More... | |
void | removePlane (const QString &callsign) |
Remove a traffic aircraft. More... | |
void | removeAllPlanes () |
Remove all traffic aircraft. More... | |
void | setPlanesPositions (const swift::simplugin::xplane::PlanesPositions &planesPositions) |
Set the position of multiple traffic aircrafts. More... | |
void | setPlanesSurfaces (const swift::simplugin::xplane::PlanesSurfaces &planesSurfaces) |
Set the flight control surfaces and lights of multiple traffic aircrafts. More... | |
void | setPlanesTransponders (const swift::simplugin::xplane::PlanesTransponders &planesTransponders) |
Set the transponder of multiple traffic aircraft. More... | |
void | setInterpolatorMode (const QString &callsign, bool spline) |
void | getRemoteAircraftData (const QStringList &callsigns, const RemoteAircraftDataCallback &setter) const |
Get remote aircrafts data (lat, lon, elevation and CG) More... | |
void | getElevationAtPosition (const swift::misc::aviation::CCallsign &callsign, double latitudeDeg, double longitudeDeg, double altitudeMeters, const ElevationCallback &setter) const |
Get the ground elevation at an arbitrary position. More... | |
void | setFollowedAircraft (const QString &callsign) |
Sets the aircraft with callsign to be followed in plane view. More... | |
Signals | |
void | simFrame () |
Simulator frame. More... | |
void | remoteAircraftAdded (const QString &callsign) |
Remote aircraft successfully added. | |
void | remoteAircraftAddingFailed (const QString &callsign) |
Remote aircraft adding failed. | |
Public Member Functions | |
CXSwiftBusTrafficProxy (QDBusConnection &connection, QObject *parent=nullptr, bool dummy=false) | |
Constructor. | |
bool | isValid () const |
Does the remote object exist? | |
Static Public Member Functions | |
static const QString & | InterfaceName () |
Service name. | |
static const QString & | ObjectPath () |
Service path. | |
static const QStringList & | getLogCategories () |
Log. categories. | |
Proxy object connected to a real XSwiftBus::CTraffic object via DBus.
Definition at line 153 of file xswiftbustrafficproxy.h.
|
slot |
Returns whether multiplayer planes have been acquired. If not, owner will be set to the plugin that acquired it.
Definition at line 50 of file xswiftbustrafficproxy.cpp.
|
slot |
Introduce a new traffic aircraft.
Definition at line 92 of file xswiftbustrafficproxy.cpp.
|
slot |
Reverse the actions of initialize().
Definition at line 70 of file xswiftbustrafficproxy.cpp.
|
slot |
Get the ground elevation at an arbitrary position.
Definition at line 162 of file xswiftbustrafficproxy.cpp.
|
slot |
Get remote aircrafts data (lat, lon, elevation and CG)
Definition at line 135 of file xswiftbustrafficproxy.cpp.
|
slot |
Initialize the multiplayer planes rendering and return true if successful.
Definition at line 65 of file xswiftbustrafficproxy.cpp.
|
slot |
Load a collection of planes from the given directory and return error message if unsuccessful.
Definition at line 72 of file xswiftbustrafficproxy.cpp.
|
slot |
Remove all traffic aircraft.
Definition at line 104 of file xswiftbustrafficproxy.cpp.
|
slot |
Remove a traffic aircraft.
Definition at line 99 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the ICAO code to use for aircraft without a model match.
Definition at line 77 of file xswiftbustrafficproxy.cpp.
|
slot |
Sets the aircraft with callsign to be followed in plane view.
Definition at line 194 of file xswiftbustrafficproxy.cpp.
|
slot |
Definition at line 130 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the maximum distance at which to draw aircraft (nautical miles).
Definition at line 87 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the maximum number of aircraft.
Definition at line 82 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the position of multiple traffic aircrafts.
Definition at line 106 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the flight control surfaces and lights of multiple traffic aircrafts.
Definition at line 114 of file xswiftbustrafficproxy.cpp.
|
slot |
Set the transponder of multiple traffic aircraft.
Definition at line 124 of file xswiftbustrafficproxy.cpp.
|
signal |
Simulator frame.