|
swift
|
Comprehensive information of an aircraft. More...
#include <simulatedaircraft.h>
Public Types | |
| enum | ColumnIndex { IndexCallsign = CPropertyIndexRef::GlobalIndexCSimulatedAircraft , IndexPilot , IndexRelativeDistance , IndexCom1System , IndexCom2System , IndexTransponder , IndexSituation , IndexAircraftIcaoCode , IndexLivery , IndexParts , IndexIsVtol , IndexCombinedIcaoLiveryString , IndexCombinedIcaoLiveryStringNetworkModel , IndexModel , IndexNetworkModel , IndexNetworkModelAircraftIcaoDifference , IndexNetworkModelAirlineIcaoDifference , IndexNetworkModelLiveryDifference , IndexEnabled , IndexRendered , IndexPartsSynchronized , IndexFastPositionUpdates , IndexSupportsGndFlag } |
| Properties by index. More... | |
| Public Types inherited from swift::misc::CValueObject< CSimulatedAircraft > | |
| using | base_type |
| Base class. | |
| Public Types inherited from swift::misc::CEmpty | |
| using | base_type = CEmpty |
| Base class is alias of itself. | |
| Public Types inherited from swift::misc::mixin::Index< CSimulatedAircraft > | |
| enum | ColumnIndex |
| Base class enums. More... | |
| Public Types inherited from swift::misc::geo::ICoordinateWithRelativePosition | |
| enum | ColumnIndex { IndexRelativeDistance = CPropertyIndexRef::GlobalIndexICoordinateWithRelativePosition , IndexRelativeBearing } |
| Properties by index. More... | |
| Public Types inherited from swift::misc::geo::ICoordinateGeodetic | |
| enum | ColumnIndex { IndexLatitude = CPropertyIndexRef::GlobalIndexICoordinateGeodetic , IndexLongitude , IndexLatitudeAsString , IndexLongitudeAsString , IndexGeodeticHeight , IndexGeodeticHeightAsString , IndexNormalVector } |
| Properties by index. More... | |
Public Member Functions | |
| CSimulatedAircraft () | |
| Default constructor. | |
| CSimulatedAircraft (const CAircraftModel &model) | |
| Constructor. | |
| CSimulatedAircraft (const aviation::CCallsign &callsign, const network::CUser &user, const aviation::CAircraftSituation &situation) | |
| Constructor. | |
| CSimulatedAircraft (const aviation::CCallsign &callsign, const CAircraftModel &model, const network::CUser &user, const aviation::CAircraftSituation &situation) | |
| Constructor. | |
| const aviation::CCallsign & | getCallsign () const |
| Get callsign. | |
| QString | getCallsignAsString () const |
| Get callsign. | |
| const aviation::CAircraftSituation & | getSituation () const |
| Get situation. | |
| void | setSituation (const aviation::CAircraftSituation &situation) |
| Set situation. Won't overwrite the velocity unless it held the default value. | |
| const aviation::CAircraftVelocity & | getVelocity () const |
| Get 6DOF velocity. | |
| void | setVelocity (const aviation::CAircraftVelocity &velocity) |
| Set 6DOF velocity. | |
| const network::CUser & | getPilot () const |
| Get user. | |
| QString | getPilotRealName () const |
| Get user's real name. | |
| QString | getPilotId () |
| Get user's real id. | |
| const aviation::CAircraftIcaoCode & | getAircraftIcaoCode () const |
| Get aircraft ICAO info. | |
| const QString & | getAircraftIcaoCodeDesignator () const |
| Aircraft ICAO code designator. | |
| QString | getAirlineAndAircraftIcaoCodeDesignators () const |
| Aircraft and Airline ICAO code designators. | |
| const QString & | getAircraftIcaoCombinedType () const |
| Aircraft ICAO combined code. | |
| bool | setAircraftIcaoCode (const aviation::CAircraftIcaoCode &aircraftIcaoCode) |
| Set aicraft ICAO code. | |
| bool | setIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode) |
| Set ICAO info. | |
| const aviation::CLivery & | getLivery () const |
| Get livery. | |
| const aviation::CAirlineIcaoCode & | getAirlineIcaoCode () const |
| Airline ICAO code if any. | |
| const QString & | getAirlineIcaoCodeDesignator () const |
| Airline ICAO code designator. | |
| void | setAircraftIcaoDesignator (const QString &designator) |
| Set aircraft ICAO designator. | |
| bool | hasRealName () const |
| Has valid realname? | |
| bool | hasId () const |
| Has valid id? | |
| bool | hasAircraftDesignator () const |
| Valid designator? | |
| bool | hasAirlineDesignator () const |
| Valid airline designator. | |
| bool | hasAircraftAndAirlineDesignator () const |
| Valid designators? | |
| bool | hasValidCallsign () const |
| Valid callsign? | |
| bool | hasCallsign () const |
| Callsign not empty, no further checks. | |
| geo::CCoordinateGeodetic | getPosition () const |
| Get position. | |
| void | setPosition (const geo::CCoordinateGeodetic &position) |
| Set position. | |
| const aviation::CAltitude & | getAltitude () const |
| Get altitude. | |
| void | setAltitude (const aviation::CAltitude &altitude) |
| Set altitude. | |
| const aviation::CAltitude & | getPressureAltitude () const |
| Get pressure altitude. | |
| void | setPressureAltitude (const aviation::CAltitude &altitude) |
| Set pressure altitude. | |
| const physical_quantities::CSpeed & | getGroundSpeed () const |
| Get groundspeed. | |
| geo::CLatitude | latitude () const |
| Latitude. | |
| geo::CLongitude | longitude () const |
| Longitude. | |
| const aviation::CAltitude & | geodeticHeight () const |
| Height, ellipsoidal or geodetic height (used in GPS). | |
| QVector3D | normalVector () const |
| Normal vector. | |
| std::array< double, 3 > | normalVectorDouble () const |
| Normal vector with double precision. | |
| const aviation::CAltitude & | getGroundElevation () const |
| Elevation of the ground directly beneath. | |
| void | setGroundElevation (const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info) |
| Elevation of the ground directly beneath at the given situation. | |
| void | setGroundElevationChecked (const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info) |
| Elevation of the ground directly beneath at the given situation. | |
| const aviation::CHeading & | getHeading () const |
| Get heading. | |
| const physical_quantities::CAngle & | getPitch () const |
| Get pitch. | |
| const physical_quantities::CAngle & | getBank () const |
| Get bank (angle). | |
| const aviation::CComSystem & | getCom1System () const |
| Get COM1 system. | |
| const aviation::CComSystem & | getCom2System () const |
| Get COM2 system. | |
| aviation::CComSystem | getComSystem (aviation::CComSystem::ComUnit unit) const |
| Get COM unit. | |
| void | setComSystem (const aviation::CComSystem &com, aviation::CComSystem::ComUnit unit) |
| Set COM unit. | |
| void | setCom1System (const aviation::CComSystem &comSystem) |
| Set COM1 system. | |
| void | setCom2System (const aviation::CComSystem &comSystem) |
| Set COM2 system. | |
| bool | setCom1ActiveFrequency (const physical_quantities::CFrequency &frequency) |
| Set COM1 frequency. | |
| bool | setCom2ActiveFrequency (const physical_quantities::CFrequency &frequency) |
| Set COM2 frequency. | |
| bool | setComActiveFrequency (const physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit unit) |
| Set COM frequency. | |
| bool | isSelcalSelected (const aviation::CSelcal &selcal) const |
| Given SELCAL selected? | |
| bool | hasValidSelcal () const |
| Valid SELCAL? | |
| const aviation::CSelcal | getSelcal () const |
| SELCAL. | |
| void | setCockpit (const CSimulatedAircraft &aircraft) |
| Set COM unit (all values + transponder and SELCAL). | |
| void | setCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder) |
| Cockpit data. | |
| void | setCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, int transponderCode, aviation::CTransponder::TransponderMode mode) |
| Cockpit data. | |
| void | setSelcal (const aviation::CSelcal &selcal) |
| Own SELCAL code. | |
| bool | hasChangedCockpitData (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder) const |
| Changed cockpit data? | |
| bool | hasSameComData (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder) |
| Identical COM system? | |
| bool | hasComActiveFrequency (const physical_quantities::CFrequency &comFrequency) const |
| Is comFrequency selected in COM1 or COM2 as active frequency (with 5 kHz spacing for .x20/.x25 and .x70/.x75). | |
| const aviation::CTransponder & | getTransponder () const |
| Get transponder. | |
| void | setTransponder (const aviation::CTransponder &transponder) |
| Set transponder. | |
| bool | setTransponderMode (aviation::CTransponder::TransponderMode mode) |
| Set transponder mode. | |
| void | setTransponderCode (int code) |
| Set transponder code. | |
| QString | getTransponderCodeFormatted () const |
| Get transponder code. | |
| qint32 | getTransponderCode () const |
| Get transponder code. | |
| aviation::CTransponder::TransponderMode | getTransponderMode () const |
| Get transponder mode. | |
| bool | isValidForLogin () const |
| Is valid for login? | |
| void | initComSystems () |
| Meaningful default settings for COM Systems. | |
| void | initTransponder () |
| Meaningful default settings for Transponder. | |
| const aviation::CAircraftParts & | getParts () const |
| Get aircraft parts. | |
| int | getEnginesCount () const |
| Number of engines. | |
| aviation::CAircraftLights | getLights () const |
| Get aircraft parts. | |
| void | setParts (const aviation::CAircraftParts &parts) |
| Set aircraft parts. | |
| void | setLights (aviation::CAircraftLights &lights) |
| Set aircraft lights. | |
| void | setAllLightsOn () |
| Set aircraft lights on. | |
| void | setAllLightsOff () |
| Set aircraft lights off. | |
| bool | isVtol () const |
| VTOL aircraft? | |
| bool | isMilitary () const |
| Is military aircraft. | |
| QString | getCombinedIcaoLiveryString (bool networkModel=false) const |
| Combined ICAO / color string. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CSimulatedAircraft &compareValue) const |
| Compare for index. | |
| const simulation::CAircraftModel & | getModel () const |
| Get model (model used for mapping). | |
| bool | isTerrainProbe () const |
| Terrain probe? | |
| const simulation::CAircraftModel & | getNetworkModel () const |
| Get network model. | |
| const simulation::CAircraftModel & | getNetworkModelOrModel () const |
| Get network model or (if not existing) model. | |
| bool | hasNetworkModel () const |
| Has a network model been set? | |
| QString | getNetworkModelAircraftIcaoDifference () const |
| Difference of network and (rendered) aircraft ICAO code. | |
| QString | getNetworkModelAirlineIcaoDifference () const |
| Difference of network and (rendered) airline ICAO code. | |
| QString | getNetworkModelLiveryDifference () const |
| Difference of network and (rendered) livery code. | |
| const QString & | getModelString () const |
| Get model string. | |
| void | setModelString (const QString &modelString) |
| Set model string. | |
| bool | hasModelString () const |
| Has model string? | |
| void | setModel (const CAircraftModel &model) |
| Set model. | |
| void | setNetworkModel (const CAircraftModel &model) |
| Set network model. | |
| const physical_quantities::CLength & | getCG () const |
| Get CG from model. | |
| bool | hasCG () const |
| Has CG from model? | |
| bool | resetToNetworkModel () |
| Reset to the newtork model. | |
| bool | setCG (const physical_quantities::CLength &cg) |
| Set the center of gravity. | |
| void | setCallsign (const aviation::CCallsign &callsign) |
| Set callsign. | |
| void | setPilot (const network::CUser &user) |
| Set pilot. | |
| bool | isEnabled () const |
| Enabled? Enable means it shall be displayed in the simulator. | |
| bool | setEnabled (bool enabled) |
| Enabled / disabled. | |
| bool | isRendered () const |
| Rendered? | |
| bool | fastPositionUpdates () const |
| Support fast position updates. | |
| bool | setFastPositionUpdates (bool useFastPositions) |
| Support fast position updates. | |
| bool | toggleFastPositionUpdates () |
| Toggle fast position updates. | |
| bool | setRendered (bool rendered) |
| Rendered? | |
| bool | isPartsSynchronized () const |
| Have parts been synchronized with a remote client? | |
| void | setPartsSynchronized (bool synchronized) |
| Set the synchronisation flag. | |
| bool | isSupportingGndFlag () const |
| Is supporting gnd.flag? | |
| void | setSupportingGndFlag (bool supports) |
| Indicate gnd.flag is supported. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| CIcons::IconIndex | toIcon () const |
| As icon, not implemented by all classes. | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatedAircraft > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
| Public Member Functions inherited from swift::misc::mixin::DBusByMetaClass< CSimulatedAircraft > | |
| void | marshallToDbus (QDBusArgument &arg, Tags...) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
| Public Member Functions inherited from swift::misc::mixin::DataStreamByMetaClass< CSimulatedAircraft > | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. | |
| Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CSimulatedAircraft > | |
| QJsonObject | toJson () const |
| Cast to JSON object. | |
| QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| Public Member Functions inherited from swift::misc::mixin::String< CSimulatedAircraft > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
| Public Member Functions inherited from swift::misc::mixin::Index< CSimulatedAircraft > | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CSimulatedAircraft &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
| Public Member Functions inherited from swift::misc::mixin::Icon< CSimulatedAircraft > | |
| CIcons::CIcons::StandardIconUnknown16 | toIcon () const |
| As icon, not implemented by all classes. | |
| Public Member Functions inherited from swift::misc::geo::ICoordinateWithRelativePosition | |
| const physical_quantities::CLength & | getRelativeDistance () const |
| Get the distance. | |
| void | setRelativeDistance (const physical_quantities::CLength &distance) |
| Set relative distance. | |
| const physical_quantities::CAngle & | getRelativeBearing () const |
| Get the relative bearing. | |
| void | setRelativeBearing (const physical_quantities::CAngle &angle) |
| Set bearing to own plane. | |
| bool | hasValidRelativeDistance () const |
| Valid distance? | |
| bool | hasValidRelativeBearing () const |
| Valid bearing? | |
| physical_quantities::CLength | calculcateAndUpdateRelativeDistance (const geo::ICoordinateGeodetic &position) |
| Calculcate distance, set it, and return distance. | |
| physical_quantities::CLength | calculcateAndUpdateRelativeDistanceAndBearing (const geo::ICoordinateGeodetic &position) |
| Calculcate distance and bearing to plane, set it, and return distance. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const ICoordinateWithRelativePosition &compareValue) const |
| Compare for index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| Public Member Functions inherited from swift::misc::geo::ICoordinateGeodetic | |
| ICoordinateGeodetic ()=default | |
| Ctor. | |
| virtual | ~ICoordinateGeodetic ()=default |
| Destructor. | |
| ICoordinateGeodetic (const ICoordinateGeodetic &)=default | |
| Copy constructor. | |
| ICoordinateGeodetic & | operator= (const ICoordinateGeodetic &)=default |
| Copy assignment operator. | |
| bool | equalNormalVectorDouble (const std::array< double, 3 > &otherVector) const |
| Is equal? Epsilon considered. | |
| bool | equalNormalVectorDouble (const ICoordinateGeodetic &otherCoordinate) const |
| Is equal, epsilon considered? | |
| QString | latitudeAsString () const |
| Latitude as string. | |
| QString | longitudeAsString () const |
| Longitude as string. | |
| QString | geodeticHeightAsString () const |
| Height as string. | |
| bool | isGeodeticHeightNull () const |
| Geodetic height null? | |
| bool | hasMSLGeodeticHeight () const |
| Geodetic height not null and aviation::CAltitude::MeanSeaLevel. | |
| virtual bool | isNull () const |
| Is null, means vector x, y, z == 0. | |
| physical_quantities::CLength | calculateGreatCircleDistance (const ICoordinateGeodetic &otherCoordinate) const |
| Great circle distance. | |
| bool | isWithinRange (const ICoordinateGeodetic &otherCoordinate, const physical_quantities::CLength &range) const |
| Object within range? | |
| physical_quantities::CAngle | calculateBearing (const ICoordinateGeodetic &otherCoordinate) const |
| Initial bearing. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const ICoordinateGeodetic &compareValue) const |
| Compare for index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| bool | isNaNVector () const |
| Check values. | |
| bool | isNaNVectorDouble () const |
| Check values. | |
| bool | isInfVector () const |
| Check values. | |
| bool | isInfVectorDouble () const |
| Check values. | |
| bool | isValidVectorRange () const |
| Check values. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatedAircraft > | |
| static void | registerMetadata () |
| Register metadata. | |
| Static Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CSimulatedAircraft > | |
| static DerivedObj | fromJson (const QJsonObject &json) |
| Get object from QJsonObject. | |
| static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Get object from JSON string. | |
| static bool | isValidVector (const std::array< double, 3 > &v) |
| Check values. | |
| Protected Member Functions inherited from swift::misc::CValueObject< CSimulatedAircraft > | |
| CEmpty ()=default | |
| Inheriting constructors. | |
| CEmpty (const CEmpty &)=default | |
| Inheriting constructors. | |
| CValueObject ()=default | |
| Default constructor. | |
| CValueObject & | operator= (const CValueObject &)=default |
| Copy assignment operator. | |
| ~CValueObject ()=default | |
| Destructor. | |
| Protected Member Functions inherited from swift::misc::CEmpty | |
| CEmpty ()=default | |
| Protected default constructor. | |
| CEmpty (const CEmpty &)=default | |
| Protected copy constructor. | |
| CEmpty & | operator= (const CEmpty &)=default |
| Protected copy assignment operator. | |
| ~CEmpty ()=default | |
| Non-virtual protected destructor. | |
| Protected Member Functions inherited from swift::misc::geo::ICoordinateWithRelativePosition | |
| ICoordinateWithRelativePosition ()=default | |
| Constructor. | |
| Static Protected Member Functions inherited from swift::misc::geo::ICoordinateWithRelativePosition | |
| static bool | canHandleIndex (CPropertyIndexRef index) |
| Can given index be handled? | |
| Static Protected Member Functions inherited from swift::misc::geo::ICoordinateGeodetic | |
| static bool | canHandleIndex (CPropertyIndexRef index) |
| Can given index be handled? | |
| Protected Attributes inherited from swift::misc::geo::ICoordinateWithRelativePosition | |
| physical_quantities::CAngle | m_relativeBearing { 0, nullptr } |
| temporary stored value | |
| physical_quantities::CLength | m_relativeDistance { 0, nullptr } |
| temporary stored value | |
Comprehensive information of an aircraft.
Definition at line 57 of file simulatedaircraft.h.
Properties by index.
Definition at line 63 of file simulatedaircraft.h.
| swift::misc::simulation::CSimulatedAircraft::CSimulatedAircraft | ( | ) |
Default constructor.
Definition at line 26 of file simulatedaircraft.cpp.
|
explicit |
Constructor.
Definition at line 28 of file simulatedaircraft.cpp.
| swift::misc::simulation::CSimulatedAircraft::CSimulatedAircraft | ( | const aviation::CCallsign & | callsign, |
| const network::CUser & | user, | ||
| const aviation::CAircraftSituation & | situation ) |
Constructor.
Definition at line 34 of file simulatedaircraft.cpp.
| swift::misc::simulation::CSimulatedAircraft::CSimulatedAircraft | ( | const aviation::CCallsign & | callsign, |
| const CAircraftModel & | model, | ||
| const network::CUser & | user, | ||
| const aviation::CAircraftSituation & | situation ) |
Constructor.
Definition at line 41 of file simulatedaircraft.cpp.
| int swift::misc::simulation::CSimulatedAircraft::comparePropertyByIndex | ( | CPropertyIndexRef | index, |
| const CSimulatedAircraft & | compareValue ) const |
Compare for index.
Definition at line 439 of file simulatedaircraft.cpp.
| QString swift::misc::simulation::CSimulatedAircraft::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 654 of file simulatedaircraft.cpp.
|
inline |
Support fast position updates.
Definition at line 449 of file simulatedaircraft.h.
|
inlinevirtual |
Height, ellipsoidal or geodetic height (used in GPS).
This is approximately MSL (orthometric) height, aka altitude, aka elevation. The terms "geodetic height", "altitude", and "elevation" are interchangable. "Geodetic height" is the generic, context-free term for the vertical component of a position. This is commonly called "altitude" for objects that can move freely in the vertical component. By a similar convention, "elevation" is commonly used for objects that are fixed to the ground.
Implements swift::misc::geo::ICoordinateGeodetic.
Definition at line 219 of file simulatedaircraft.h.
| const CAircraftIcaoCode & swift::misc::simulation::CSimulatedAircraft::getAircraftIcaoCode | ( | ) | const |
Get aircraft ICAO info.
Definition at line 114 of file simulatedaircraft.cpp.
| const QString & swift::misc::simulation::CSimulatedAircraft::getAircraftIcaoCodeDesignator | ( | ) | const |
Aircraft ICAO code designator.
Definition at line 169 of file simulatedaircraft.cpp.
| const QString & swift::misc::simulation::CSimulatedAircraft::getAircraftIcaoCombinedType | ( | ) | const |
Aircraft ICAO combined code.
Definition at line 187 of file simulatedaircraft.cpp.
| QString swift::misc::simulation::CSimulatedAircraft::getAirlineAndAircraftIcaoCodeDesignators | ( | ) | const |
Aircraft and Airline ICAO code designators.
Definition at line 174 of file simulatedaircraft.cpp.
| const CAirlineIcaoCode & swift::misc::simulation::CSimulatedAircraft::getAirlineIcaoCode | ( | ) | const |
Airline ICAO code if any.
Definition at line 205 of file simulatedaircraft.cpp.
| const QString & swift::misc::simulation::CSimulatedAircraft::getAirlineIcaoCodeDesignator | ( | ) | const |
Airline ICAO code designator.
Definition at line 210 of file simulatedaircraft.cpp.
|
inline |
Get altitude.
Definition at line 198 of file simulatedaircraft.h.
|
inline |
Get bank (angle).
Definition at line 251 of file simulatedaircraft.h.
|
inline |
Get callsign.
Definition at line 105 of file simulatedaircraft.h.
|
inline |
Get callsign.
Definition at line 108 of file simulatedaircraft.h.
|
inline |
Get CG from model.
Definition at line 422 of file simulatedaircraft.h.
|
inline |
Get COM1 system.
Definition at line 254 of file simulatedaircraft.h.
|
inline |
Get COM2 system.
Definition at line 257 of file simulatedaircraft.h.
| QString swift::misc::simulation::CSimulatedAircraft::getCombinedIcaoLiveryString | ( | bool | networkModel = false | ) | const |
Combined ICAO / color string.
Definition at line 326 of file simulatedaircraft.cpp.
| CComSystem swift::misc::simulation::CSimulatedAircraft::getComSystem | ( | aviation::CComSystem::ComUnit | unit | ) | const |
Get COM unit.
Definition at line 227 of file simulatedaircraft.cpp.
| int swift::misc::simulation::CSimulatedAircraft::getEnginesCount | ( | ) | const |
Number of engines.
Definition at line 306 of file simulatedaircraft.cpp.
|
inline |
Elevation of the ground directly beneath.
Definition at line 228 of file simulatedaircraft.h.
|
inline |
Get groundspeed.
Definition at line 210 of file simulatedaircraft.h.
|
inline |
Get heading.
Definition at line 245 of file simulatedaircraft.h.
| CAircraftLights swift::misc::simulation::CSimulatedAircraft::getLights | ( | ) | const |
Get aircraft parts.
Definition at line 312 of file simulatedaircraft.cpp.
|
inline |
Get livery.
Definition at line 156 of file simulatedaircraft.h.
|
inline |
Get model (model used for mapping).
Definition at line 383 of file simulatedaircraft.h.
|
inline |
Get model string.
Definition at line 407 of file simulatedaircraft.h.
|
inline |
Get network model.
Definition at line 389 of file simulatedaircraft.h.
| QString swift::misc::simulation::CSimulatedAircraft::getNetworkModelAircraftIcaoDifference | ( | ) | const |
Difference of network and (rendered) aircraft ICAO code.
Definition at line 514 of file simulatedaircraft.cpp.
| QString swift::misc::simulation::CSimulatedAircraft::getNetworkModelAirlineIcaoDifference | ( | ) | const |
Difference of network and (rendered) airline ICAO code.
Definition at line 539 of file simulatedaircraft.cpp.
| QString swift::misc::simulation::CSimulatedAircraft::getNetworkModelLiveryDifference | ( | ) | const |
Difference of network and (rendered) livery code.
Definition at line 570 of file simulatedaircraft.cpp.
| const CAircraftModel & swift::misc::simulation::CSimulatedAircraft::getNetworkModelOrModel | ( | ) | const |
Get network model or (if not existing) model.
Definition at line 502 of file simulatedaircraft.cpp.
|
inline |
Get aircraft parts.
Definition at line 350 of file simulatedaircraft.h.
|
inline |
Get user.
Definition at line 123 of file simulatedaircraft.h.
|
inline |
Get user's real id.
Definition at line 129 of file simulatedaircraft.h.
|
inline |
Get user's real name.
Definition at line 126 of file simulatedaircraft.h.
|
inline |
Get pitch.
Definition at line 248 of file simulatedaircraft.h.
|
inline |
Get position.
Definition at line 192 of file simulatedaircraft.h.
|
inline |
Get pressure altitude.
Definition at line 204 of file simulatedaircraft.h.
|
inline |
SELCAL.
Definition at line 288 of file simulatedaircraft.h.
|
inline |
Get situation.
Definition at line 111 of file simulatedaircraft.h.
|
inline |
Get transponder.
Definition at line 317 of file simulatedaircraft.h.
|
inline |
Get transponder code.
Definition at line 332 of file simulatedaircraft.h.
|
inline |
Get transponder code.
Definition at line 329 of file simulatedaircraft.h.
|
inline |
Get transponder mode.
Definition at line 335 of file simulatedaircraft.h.
|
inline |
Get 6DOF velocity.
Definition at line 117 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::hasAircraftAndAirlineDesignator | ( | ) | const |
Valid designators?
Definition at line 222 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::hasAircraftDesignator | ( | ) | const |
Valid designator?
Definition at line 220 of file simulatedaircraft.cpp.
|
inline |
Valid airline designator.
Definition at line 177 of file simulatedaircraft.h.
|
inline |
Callsign not empty, no further checks.
Definition at line 189 of file simulatedaircraft.h.
|
inline |
Has CG from model?
Definition at line 425 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::hasChangedCockpitData | ( | const aviation::CComSystem & | com1, |
| const aviation::CComSystem & | com2, | ||
| const aviation::CTransponder & | transponder ) const |
Changed cockpit data?
Definition at line 76 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::hasComActiveFrequency | ( | const physical_quantities::CFrequency & | comFrequency | ) | const |
Is comFrequency selected in COM1 or COM2 as active frequency (with 5 kHz spacing for .x20/.x25 and .x70/.x75).
Definition at line 643 of file simulatedaircraft.cpp.
|
inline |
Has valid id?
Definition at line 171 of file simulatedaircraft.h.
|
inline |
Has model string?
Definition at line 413 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::hasNetworkModel | ( | ) | const |
Has a network model been set?
Definition at line 508 of file simulatedaircraft.cpp.
|
inline |
Has valid realname?
Definition at line 168 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::hasSameComData | ( | const aviation::CComSystem & | com1, |
| const aviation::CComSystem & | com2, | ||
| const aviation::CTransponder & | transponder ) |
Identical COM system?
Definition at line 82 of file simulatedaircraft.cpp.
|
inline |
Valid callsign?
Definition at line 183 of file simulatedaircraft.h.
|
inline |
Valid SELCAL?
Definition at line 285 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::initComSystems | ( | ) |
Meaningful default settings for COM Systems.
Definition at line 290 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::initTransponder | ( | ) |
Meaningful default settings for Transponder.
Definition at line 300 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::isEnabled | ( | ) | const |
Enabled? Enable means it shall be displayed in the simulator.
Definition at line 125 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::isMilitary | ( | ) | const |
Is military aircraft.
Definition at line 324 of file simulatedaircraft.cpp.
|
inline |
Have parts been synchronized with a remote client?
Definition at line 461 of file simulatedaircraft.h.
|
inline |
Rendered?
Definition at line 446 of file simulatedaircraft.h.
|
inline |
Given SELCAL selected?
Definition at line 282 of file simulatedaircraft.h.
|
inline |
Is supporting gnd.flag?
Definition at line 467 of file simulatedaircraft.h.
|
inline |
Terrain probe?
Definition at line 386 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::isValidForLogin | ( | ) | const |
Is valid for login?
Definition at line 88 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::isVtol | ( | ) | const |
VTOL aircraft?
Definition at line 322 of file simulatedaircraft.cpp.
|
inlinevirtual |
Latitude.
Implements swift::misc::geo::ICoordinateGeodetic.
Definition at line 213 of file simulatedaircraft.h.
|
inlinevirtual |
Longitude.
Implements swift::misc::geo::ICoordinateGeodetic.
Definition at line 216 of file simulatedaircraft.h.
|
inlinevirtual |
Normal vector.
Implements swift::misc::geo::ICoordinateGeodetic.
Definition at line 222 of file simulatedaircraft.h.
|
inlinevirtual |
Normal vector with double precision.
Implements swift::misc::geo::ICoordinateGeodetic.
Definition at line 225 of file simulatedaircraft.h.
| QVariant swift::misc::simulation::CSimulatedAircraft::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 357 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::resetToNetworkModel | ( | ) |
Reset to the newtork model.
Definition at line 609 of file simulatedaircraft.cpp.
|
inline |
Set aicraft ICAO code.
Definition at line 144 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::setAircraftIcaoDesignator | ( | const QString & | designator | ) |
Set aircraft ICAO designator.
Definition at line 215 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setAllLightsOff | ( | ) |
Set aircraft lights off.
Definition at line 320 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setAllLightsOn | ( | ) |
Set aircraft lights on.
Definition at line 318 of file simulatedaircraft.cpp.
|
inline |
Set altitude.
Definition at line 201 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::setCallsign | ( | const aviation::CCallsign & | callsign | ) |
Set callsign.
Definition at line 634 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::setCG | ( | const physical_quantities::CLength & | cg | ) |
Set the center of gravity.
Definition at line 617 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setCockpit | ( | const aviation::CComSystem & | com1, |
| const aviation::CComSystem & | com2, | ||
| const aviation::CTransponder & | transponder ) |
Cockpit data.
Definition at line 60 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setCockpit | ( | const aviation::CComSystem & | com1, |
| const aviation::CComSystem & | com2, | ||
| int | transponderCode, | ||
| aviation::CTransponder::TransponderMode | mode ) |
Cockpit data.
Definition at line 67 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setCockpit | ( | const CSimulatedAircraft & | aircraft | ) |
Set COM unit (all values + transponder and SELCAL).
Definition at line 239 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::setCom1ActiveFrequency | ( | const physical_quantities::CFrequency & | frequency | ) |
Set COM1 frequency.
Definition at line 255 of file simulatedaircraft.cpp.
|
inline |
Set COM1 system.
Definition at line 266 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::setCom2ActiveFrequency | ( | const physical_quantities::CFrequency & | frequency | ) |
Set COM2 frequency.
Definition at line 265 of file simulatedaircraft.cpp.
|
inline |
Set COM2 system.
Definition at line 269 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::setComActiveFrequency | ( | const physical_quantities::CFrequency & | frequency, |
| aviation::CComSystem::ComUnit | unit ) |
Set COM frequency.
Definition at line 275 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setComSystem | ( | const aviation::CComSystem & | com, |
| aviation::CComSystem::ComUnit | unit ) |
Set COM unit.
Definition at line 245 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::setEnabled | ( | bool | enabled | ) |
Enabled / disabled.
Definition at line 134 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::setFastPositionUpdates | ( | bool | useFastPositions | ) |
Support fast position updates.
Definition at line 144 of file simulatedaircraft.cpp.
|
inline |
Elevation of the ground directly beneath at the given situation.
Definition at line 231 of file simulatedaircraft.h.
|
inline |
Elevation of the ground directly beneath at the given situation.
Definition at line 238 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::setIcaoCodes | ( | const aviation::CAircraftIcaoCode & | aircraftIcaoCode, |
| const aviation::CAirlineIcaoCode & | airlineIcaoCode ) |
Set ICAO info.
Definition at line 192 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setLights | ( | aviation::CAircraftLights & | lights | ) |
Set aircraft lights.
Definition at line 316 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setModel | ( | const CAircraftModel & | model | ) |
Set model.
Definition at line 593 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setModelString | ( | const QString & | modelString | ) |
Set model string.
Definition at line 628 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setNetworkModel | ( | const CAircraftModel & | model | ) |
Set network model.
Definition at line 603 of file simulatedaircraft.cpp.
| void swift::misc::simulation::CSimulatedAircraft::setParts | ( | const aviation::CAircraftParts & | parts | ) |
Set aircraft parts.
Definition at line 314 of file simulatedaircraft.cpp.
|
inline |
Set the synchronisation flag.
Definition at line 464 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::setPilot | ( | const network::CUser & | user | ) |
Set pilot.
Definition at line 119 of file simulatedaircraft.cpp.
|
inline |
Set position.
Definition at line 195 of file simulatedaircraft.h.
|
inline |
Set pressure altitude.
Definition at line 207 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::setPropertyByIndex | ( | CPropertyIndexRef | index, |
| const QVariant & | variant ) |
Set property by index.
Definition at line 397 of file simulatedaircraft.cpp.
| bool swift::misc::simulation::CSimulatedAircraft::setRendered | ( | bool | rendered | ) |
Rendered?
Definition at line 159 of file simulatedaircraft.cpp.
|
inline |
Own SELCAL code.
Definition at line 302 of file simulatedaircraft.h.
| void swift::misc::simulation::CSimulatedAircraft::setSituation | ( | const aviation::CAircraftSituation & | situation | ) |
Set situation. Won't overwrite the velocity unless it held the default value.
Definition at line 101 of file simulatedaircraft.cpp.
|
inline |
Indicate gnd.flag is supported.
Definition at line 472 of file simulatedaircraft.h.
|
inline |
Set transponder.
Definition at line 320 of file simulatedaircraft.h.
|
inline |
Set transponder code.
Definition at line 326 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::setTransponderMode | ( | aviation::CTransponder::TransponderMode | mode | ) |
Set transponder mode.
Definition at line 649 of file simulatedaircraft.cpp.
|
inline |
Set 6DOF velocity.
Definition at line 120 of file simulatedaircraft.h.
| bool swift::misc::simulation::CSimulatedAircraft::toggleFastPositionUpdates | ( | ) |
Toggle fast position updates.
Definition at line 154 of file simulatedaircraft.cpp.
|
inline |
As icon, not implemented by all classes.
Definition at line 484 of file simulatedaircraft.h.