|
swift
|
Value object encapsulating a list of aircraft. More...
#include <simulatedaircraftlist.h>
Public Member Functions | |
| CSimulatedAircraftList ()=default | |
| Default constructor. | |
| CSimulatedAircraftList (const CSequence< CSimulatedAircraft > &other) | |
| Construct from a base class object. | |
| network::CUserList | getPilots () const |
| All pilots (with valid data). | |
| CAircraftModelList | getModels () const |
| Get all models. | |
| Q_REQUIRED_RESULT CSimulatedAircraftList | findByEnabled (bool enabled) const |
| Enabled / disabled aircraft. | |
| Q_REQUIRED_RESULT CSimulatedAircraftList | findByRendered (bool rendered) const |
| Rendered / not rendered aircraft. | |
| CSimulatedAircraftList | findByVtol (bool vtol) const |
| VTOL / non VTOL aircraft. | |
| aviation::CCallsignSet | getCallsignsWithSynchronizedParts () const |
| Callsigns of aircraft with synchronized parts. | |
| bool | updateWithVatsimDataFileData (CSimulatedAircraft &aircraftToBeUpdated) const |
| Update aircraft with data from VATSIM data file. | |
| void | markAllAsNotRendered () |
| Mark all aircraft as unrendered. | |
| int | setRendered (const aviation::CCallsign &callsign, bool rendered, bool onlyFirst=true) |
| Mark given callsign as rendered. | |
| int | setCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, bool onlyFirst=true) |
| Set center of gravity. | |
| int | setEnabled (const aviation::CCallsign &callsign, bool enabled, bool onlyFirst) |
| Mark given callsign as enabled. | |
| int | setFastPositionUpdates (const aviation::CCallsign &callsign, bool fastPositions, bool onlyFirst=true) |
| Mark as fast position enabled. | |
| int | setAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, bool onlyFirst=true) |
| Set model. | |
| int | setAircraftPartsSynchronized (const aviation::CCallsign &callsign, const aviation::CAircraftParts &parts, bool onlyFirst=true) |
| Set aircraft parts and mark as synchronized. | |
| int | setAircraftSituation (const aviation::CCallsign &callsign, const aviation::CAircraftSituation &situation, bool onlyFirst=true) |
| Set aircraft situation. | |
| int | setGroundElevationChecked (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool onlyFirst=true) |
| Set ground elevation. | |
| bool | isEnabled (const aviation::CCallsign &callsign) const |
| Enabled? | |
| bool | isRendered (const aviation::CCallsign &callsign) const |
| Rendered? | |
| bool | replaceOrAddByCallsign (const CSimulatedAircraft &aircraft) |
| Replace or add by callsign. | |
| int | countEnabled () const |
| Number of enabled aircraft. | |
| int | countRendered () const |
| Number of rendered aircraft. | |
| int | countAircraftPartsSynchronized () const |
| Number of aircraft with parts. | |
| void | sortByDistanceToReferencePositionRenderedCallsign () |
| Same as sortByDistanceToReferencePosition, but consider callsign and rendered as secondary criteria. | |
| CSequence ()=default | |
| Default constructor. | |
| CSequence (std::initializer_list< T > il) | |
| Initializer list constructor. | |
| CSequence (QList< T > &&list) | |
| By QList of type T. | |
| CSequence (const QList< T > &list) | |
| By QList of type T. | |
| template<typename It> | |
| CSequence (It first, It last) | |
| Range constructor. | |
| CSequence (const CSequence &other)=default | |
| Copy constructor. | |
| CSequence (CSequence &&other)=default | |
| Move constructor. | |
| Public Member Functions inherited from swift::misc::CSequence< CSimulatedAircraft > | |
| CSequence ()=default | |
| Default constructor. | |
| CSequence & | operator= (const CSequence &other)=default |
| Copy assignment. | |
| ~CSequence ()=default | |
| Destructor. | |
| QVector< CSimulatedAircraft > | toVector () const & |
| Copy of internal vector. | |
| iterator | begin () |
| Returns iterator at the beginning of the sequence. | |
| const_iterator | cbegin () const |
| Returns const iterator at the beginning of the sequence. | |
| iterator | end () |
| Returns iterator one past the end of the sequence. | |
| const_iterator | cend () const |
| Returns const iterator one past the end of the sequence. | |
| reverse_iterator | rbegin () |
| Returns iterator at the beginning of the reversed sequence. | |
| const_reverse_iterator | crbegin () const |
| Returns const iterator at the beginning of the reversed sequence. | |
| reverse_iterator | rend () |
| Returns iterator at the end of the reversed sequence. | |
| const_reverse_iterator | crend () const |
| Returns const iterator at the end of the reversed sequence. | |
| void | swap (CSequence &other) noexcept |
| Swap this sequence with another. | |
| reference | operator[] (size_type index) |
| Access an element by its index. | |
| reference | front () |
| Access the first element. | |
| const_reference | frontOrDefault () const |
| Access the first element, or a default-initialized value if the sequence is empty. | |
| reference | back () |
| Access the last element. | |
| const_reference | backOrDefault () const |
| Access the last element, or a default value if the sequence is empty. | |
| size_type | size () const |
| Returns number of elements in the sequence. | |
| int | sizeInt () const |
| Avoid compiler warnings when using with int. | |
| QString | sizeString () const |
| Convenience function. | |
| bool | empty () const |
| Returns true if the sequence is empty. | |
| bool | isEmpty () const |
| Synonym for empty. | |
| void | clear () |
| Removes all elements in the sequence. | |
| void | truncate (size_type maxSize) |
| Changes the size of the sequence, if it is bigger than the given size. | |
| iterator | insert (iterator before, const CSimulatedAircraft &value) |
| Inserts an element into the sequence. | |
| void | push_back (const CSimulatedAircraft &value) |
| Appends an element at the end of the sequence. | |
| void | push_front (const CSimulatedAircraft &value) |
| Insert as first element. | |
| void | push_frontMaxElements (const CSimulatedAircraft &value, int maxElements) |
| Insert as first element by keep maxElements. | |
| void | push_backMaxElements (const CSimulatedAircraft &value, int maxElements) |
| Insert as last element by keep maxElements. | |
| CSequence | join (const CSequence &other) const |
| Concatenates two sequences and returns the result. | |
| void | pop_back () |
| Removes an element at the end of the sequence. | |
| void | pop_front () |
| Removes an element at the front of the sequence. | |
| iterator | erase (iterator pos) |
| Remove the element pointed to by the given iterator. | |
| iterator | find (const CSimulatedAircraft &object) |
| Return an iterator to the first element equal to the given object, or the end iterator if not found. O(n). | |
| CSequence | findBy (Predicate p) const |
| Return a copy containing only those elements for which a given predicate returns true. | |
| int | applyIf (Predicate p, const VariantMap &newValues, bool skipEqualValues=false) |
| Modify by applying a value map to each element for which a given predicate returns true. | |
| int | remove (const CSimulatedAircraft &object) |
| Remove all elements equal to the given object, if it is contained. | |
| int | removeIf (Predicate p) |
| Remove elements for which a given predicate returns true. | |
| int | removeIfIn (const CSequence &other) |
| Remove all elements if they are in other. | |
| void | removeIfInSubset (const CSequence &other) |
| Remove all elements if they are in other. | |
| int | replace (const CSimulatedAircraft &original, const CSimulatedAircraft &replacement) |
| Replace elements matching the given element with a replacement. | |
| int | replaceIf (Predicate p, const CSimulatedAircraft &replacement) |
| Replace elements for which a given predicate returns true. | |
| void | replaceOrAdd (const CSimulatedAircraft &original, const CSimulatedAircraft &replacement) |
| Replace elements matching the given element. If there is no match, push the new element on the end. | |
| void | reverse () |
| In-place reverse. | |
| Q_REQUIRED_RESULT CSequence | reversed () const |
| Reversed order. | |
| void | sort (Predicate p) |
| In-place sort by a given comparator predicate. | |
| void | sortBy (K1 key1, Keys... keys) |
| In-place sort by some particular key(s). | |
| Q_REQUIRED_RESULT CSequence | sorted (Predicate p) const |
| Return a copy sorted by a given comparator predicate. | |
| CSequence | sortedBy (K1 key1, Keys... keys) const |
| Return a copy sorted by some particular key(s). | |
| void | partiallySort (size_type n, Predicate p) |
| In-place move the smallest n elements to the beginning and sort them. | |
| void | partiallySortBy (size_type n, K1 key1, Keys... keys) |
| In-place partially sort by some particular key(s). | |
| Q_REQUIRED_RESULT CSequence | partiallySorted (size_type n, Predicate p) const |
| Return a copy with the smallest n elements at the beginning and sorted. | |
| CSequence | partiallySortedBy (size_type n, K1 key1, Keys... keys) const |
| Return a copy partially sorted by some particular key(s). | |
| bool | unorderedEqualsByKeys (const U &other, Key0 k0, Keys... keys) const |
| Return true if this container equals another container, considering only the given element members. Order of elements is not considered; this is implemented using a transient sort, so don't overuse. | |
| auto | separate (Predicate p) const -> QMap< decltype(p(std::declval< CSimulatedAircraft >())), CSequence > |
| Split up the sequence into subsequences for which the given predicate returns the same value. | |
| auto | separateBy (Key k) const -> QMap< decltype(std::invoke(k, std::declval< CSimulatedAircraft >())), CSequence > |
| Split up the sequence into subsequences of elements having the same value for the given key. | |
| 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::CContainerBase< CSequence< CSimulatedAircraft > > | |
| auto | to () const |
| Return a new container of a different type, containing the same elements as this one. | |
| int | removeIf (K0 k0, V0 v0, KeysValues... keysValues) |
| Remove elements matching some particular key/value pair(s). | |
| 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. | |
| CStatusMessage | convertFromJsonNoThrow (const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix) |
| Call convertFromJson, catch any CJsonException that is thrown and return it as CStatusMessage. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| QStringList | toStringList (bool i18n=false) const |
| To string list. | |
| void | marshallToDbus (QDBusArgument &argument) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &argument) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
| Public Member Functions inherited from swift::misc::CRangeBase< CSequence< CSimulatedAircraft > > | |
| auto | transform (F function) const |
| Return a new container generated by applying some transformation function to all elements of this one. | |
| auto | findBy (Predicate p) const |
| Return a copy containing only those elements for which a given predicate returns true. | |
| const auto & | findFirstBy (Predicate p) const |
| Return a reference to the first element for which a given predicate returns true. Undefined if there is none. | |
| auto | findFirstByOrDefault (Predicate p, const Value &def) const |
| Return a copy of the first element for which a given predicate returns true, or a default value if there is none. | |
| bool | containsBy (Predicate p) const |
| Return true if there is an element for which a given predicate returns true. | |
| bool | contains (const T &object) const |
| Return true if there is an element equal to given object. Uses the most efficient implementation available in the derived container. | |
| bool | equalsBy (const T &other, Predicate c) const |
| Return true if this container equals another container according to the given element equality predicate. | |
| bool | equalsByKeys (const T &other, Key0 k0, Keys... keys) const |
| Return true if this container equals another container, considering only the given element members. | |
| T | randomElement () const |
| Pick one random element. | |
| CSequence< CSimulatedAircraft > | randomElements (int n) const |
| Copy n elements from the container at random. | |
| CSequence< CSimulatedAircraft > | sampleElements (int n) const |
| Copy n elements from the container, randomly selected but evenly distributed. | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CSequence< 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::String< CSequence< 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::Icon< CSequence< CSimulatedAircraft > > | |
| CIcons::CIcons::StandardIconUnknown16 | toIcon () const |
| As icon, not implemented by all classes. | |
| Public Member Functions inherited from swift::misc::aviation::ICallsignObjectList< CSimulatedAircraft, CSimulatedAircraftList > | |
| bool | containsCallsign (const CCallsign &callsign) const |
| Contains callsign? | |
| int | applyIfCallsign (const CCallsign &callsign, const CPropertyIndexVariantMap &variantMap, bool skipEqualValues=true) |
| Apply for given callsign. | |
| swift::misc::aviation::CCallsignSet | getCallsigns () const |
| All callsigns. | |
| QStringList | getCallsignStrings (bool sorted=false) const |
| Get callsign string list. | |
| QString | getCallsignsAsString (const QString &separator, bool sorted=false) const |
| Get callsigns as strings. | |
| CSimulatedAircraftList | findByCallsign (const CCallsign &callsign) const |
| Find 0..n stations by callsign. | |
| CSimulatedAircraftList | findByCallsigns (const CCallsignSet &callsigns) const |
| Find 0..n aircraft matching any of a set of callsigns. | |
| CSimulatedAircraft | findFirstByCallsign (const CCallsign &callsign, const CSimulatedAircraft &ifNotFound={}) const |
| Find the first aircraft by callsign, if none return given one. | |
| CSimulatedAircraft | findLastByCallsign (const CCallsign &callsign, const CSimulatedAircraft &ifNotFound={}) const |
| Find the back object by callsign, if none return given one. | |
| CSimulatedAircraftList | findBySuffix (const QString &suffix) const |
| All with given suffix, empty suffixes ignored. | |
| int | firstIndexOfCallsign (const CCallsign &callsign) |
| First found index of callsign, otherwise -1. | |
| int | removeByCallsign (const CCallsign &callsign) |
| Remove all objects with callsign. | |
| int | removeByCallsigns (const CCallsignSet &callsigns) |
| Remove all objects with callsigns. | |
| QMap< QString, int > | getSuffixesAndCount () const |
| All suffixes with their respective count. | |
| QStringList | getSuffixes () const |
| All suffixes, in the order of the list. | |
| QHash< CCallsign, CSimulatedAircraftList > | splitPerCallsign () const |
| Split into 0..n containers as per callsign. | |
| int | replaceOrAddObjectByCallsign (const CSimulatedAircraft &otherObject) |
| Replace or add objects by callsign. | |
| int | replaceOrAddObjectsByCallsign (const CSimulatedAircraftList &others) |
| Replace or add objects by callsign. | |
| int | incrementalUpdateOrAdd (const CSimulatedAircraft &objectBeforeChanges, const CPropertyIndexVariantMap &changedValues) |
| Incremental update or add object. | |
| void | sortByCallsign () |
| Sort by callsign. | |
| QMap< CCallsign, CSimulatedAircraft > | asCallsignMap () const |
| Turn into callsign map. | |
| QHash< CCallsign, CSimulatedAircraft > | asCallsignHash () const |
| Turn into callsign hash. | |
| CSimulatedAircraftList | sortedByCallsign () const |
| Copy of list sorted by callsign. | |
| Public Member Functions inherited from swift::misc::geo::IGeoObjectWithRelativePositionList< CSimulatedAircraft, CSimulatedAircraftList > | |
| void | sortByRange (const ICoordinateGeodetic &position, bool updateValues) |
| Calculate distances, then sort by range. | |
| void | sortByDistanceToReferencePosition () |
| If distance is already set, just sort container. | |
| void | partiallySortByDistanceToReferencePosition (int number) |
| Sort the first n closest objects. | |
| CSimulatedAircraftList | getClosestObjects (int number) const |
| Get n closest objects. | |
| void | removeIfOutsideRange (const ICoordinateGeodetic &position, const physical_quantities::CLength &maxDistance, bool updateValues) |
| Calculate distances, remove if outside range. | |
| void | calculcateAndUpdateRelativeDistanceAndBearing (const ICoordinateGeodetic &position) |
| Calculate distances. | |
| Public Member Functions inherited from swift::misc::geo::IGeoObjectList< CSimulatedAircraft, CSimulatedAircraftList > | |
| CSimulatedAircraftList | findWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Find 0..n objects within range of given coordinate. | |
| CSimulatedAircraftList | findOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Find 0..n objects outside range of given coordinate. | |
| CSimulatedAircraft | findFirstWithinRangeOrDefault (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Find first in range. | |
| CSimulatedAircraftList | findWithGeodeticMSLHeight () const |
| Elements with geodetic height (only MSL). | |
| bool | containsObjectInRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Any object in range? | |
| bool | containsObjectOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Any object in range? | |
| bool | containsNullPosition () const |
| Any NULL position? | |
| bool | containsNullPositionOrHeight () const |
| Any NULL position or NULL height. | |
| MinMaxAverageHeight | findMinMaxAverageHeight () const |
| Find min/max/average height. | |
| aviation::CAltitude | findMaxHeight () const |
| Find min/max/average height. | |
| int | removeInsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) |
| Remove inside range. | |
| int | removeOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) |
| Remove outside range. | |
| int | removeWithoutGeodeticHeight () |
| Remove if there is no geodetic height. | |
| CSimulatedAircraftList | findClosest (int number, const ICoordinateGeodetic &coordinate) const |
| Find 0..n objects closest to the given coordinate. | |
| CSimulatedAircraftList | findFarthest (int number, const ICoordinateGeodetic &coordinate) const |
| Find 0..n objects farthest to the given coordinate. | |
| CSimulatedAircraft | findClosestWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const |
| Find closest within range to the given coordinate. | |
| void | sortByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate) |
| Sort by distance. | |
| CSimulatedAircraftList | sortedByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate) const |
| Sorted by distance. | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatedAircraftList > | |
| 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. | |
Additional Inherited Members | |
| Public Types inherited from swift::misc::CSequence< CSimulatedAircraft > | |
| using | key_type |
| STL compatibility. | |
| using | value_type |
| STL compatilibty. | |
| using | reference |
| STL compatibility. | |
| using | const_reference |
| STL compatibility. | |
| using | pointer |
| STL compatibility. | |
| using | const_pointer |
| STL compatibility. | |
| using | const_iterator |
| STL compatibility. | |
| using | iterator |
| STL compatibility. | |
| using | const_reverse_iterator |
| STL compatibility. | |
| using | reverse_iterator |
| STL compatibility. | |
| using | difference_type |
| STL compatibility. | |
| using | size_type |
| STL compatibility. | |
| Public Types inherited from swift::misc::geo::IGeoObjectList< CSimulatedAircraft, CSimulatedAircraftList > | |
| using | MinMaxAverageHeight |
| For statistics. | |
| Static Public Member Functions inherited from swift::misc::CContainerBase< CSequence< CSimulatedAircraft > > | |
| static CSequence< CSimulatedAircraft > | fromJson (const QJsonObject &json) |
| Static version of convertFromJson. | |
| static CSequence< CSimulatedAircraft > | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Static version of convertFromJson. | |
| Static Public Member Functions inherited from swift::misc::mixin::MetaType< CSequence< CSimulatedAircraft > > | |
| static void | registerMetadata () |
| Register metadata. | |
| Static Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatedAircraftList > | |
| static void | registerMetadata () |
| Register metadata. | |
| Protected Member Functions inherited from swift::misc::CContainerBase< CSequence< CSimulatedAircraft > > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. | |
| Protected Member Functions inherited from swift::misc::aviation::ICallsignObjectList< CSimulatedAircraft, CSimulatedAircraftList > | |
| ICallsignObjectList () | |
| Constructor. | |
| const CSimulatedAircraftList & | container () const |
| Container. | |
| Protected Member Functions inherited from swift::misc::geo::IGeoObjectWithRelativePositionList< CSimulatedAircraft, CSimulatedAircraftList > | |
| IGeoObjectWithRelativePositionList () | |
| Constructor. | |
| Protected Member Functions inherited from swift::misc::geo::IGeoObjectList< CSimulatedAircraft, CSimulatedAircraftList > | |
| IGeoObjectList () | |
| Constructor. | |
| const CSimulatedAircraftList & | container () const |
| Container. | |
| Static Protected Member Functions inherited from swift::misc::CRangeBase< CSequence< CSimulatedAircraft > > | |
| static bool | equalPointers (const T *a, const U *b) |
| Efficiently compare addresses of two objects. Return false if types are not compatible. | |
Value object encapsulating a list of aircraft.
Definition at line 37 of file simulatedaircraftlist.h.
| swift::misc::simulation::CSimulatedAircraftList::CSimulatedAircraftList | ( | const CSequence< CSimulatedAircraft > & | other | ) |
Construct from a base class object.
Definition at line 28 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::countAircraftPartsSynchronized | ( | ) | const |
Number of aircraft with parts.
Definition at line 308 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::countEnabled | ( | ) | const |
Number of enabled aircraft.
Definition at line 282 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::countRendered | ( | ) | const |
Number of rendered aircraft.
Definition at line 295 of file simulatedaircraftlist.cpp.
|
inline |
By QList of type T.
Definition at line 134 of file sequence.h.
|
inline |
Range constructor.
Definition at line 138 of file sequence.h.
|
inline |
By QList of type T.
Definition at line 131 of file sequence.h.
|
inline |
Initializer list constructor.
Definition at line 128 of file sequence.h.
| CSimulatedAircraftList swift::misc::simulation::CSimulatedAircraftList::findByEnabled | ( | bool | enabled | ) | const |
Enabled / disabled aircraft.
Definition at line 43 of file simulatedaircraftlist.cpp.
| CSimulatedAircraftList swift::misc::simulation::CSimulatedAircraftList::findByRendered | ( | bool | rendered | ) | const |
Rendered / not rendered aircraft.
Definition at line 48 of file simulatedaircraftlist.cpp.
| CSimulatedAircraftList swift::misc::simulation::CSimulatedAircraftList::findByVtol | ( | bool | vtol | ) | const |
VTOL / non VTOL aircraft.
Definition at line 53 of file simulatedaircraftlist.cpp.
| CCallsignSet swift::misc::simulation::CSimulatedAircraftList::getCallsignsWithSynchronizedParts | ( | ) | const |
Callsigns of aircraft with synchronized parts.
Definition at line 58 of file simulatedaircraftlist.cpp.
| CAircraftModelList swift::misc::simulation::CSimulatedAircraftList::getModels | ( | ) | const |
Get all models.
Definition at line 38 of file simulatedaircraftlist.cpp.
| CUserList swift::misc::simulation::CSimulatedAircraftList::getPilots | ( | ) | const |
All pilots (with valid data).
Definition at line 32 of file simulatedaircraftlist.cpp.
| bool swift::misc::simulation::CSimulatedAircraftList::isEnabled | ( | const aviation::CCallsign & | callsign | ) | const |
Enabled?
Definition at line 239 of file simulatedaircraftlist.cpp.
| bool swift::misc::simulation::CSimulatedAircraftList::isRendered | ( | const aviation::CCallsign & | callsign | ) | const |
Rendered?
Definition at line 252 of file simulatedaircraftlist.cpp.
| void swift::misc::simulation::CSimulatedAircraftList::markAllAsNotRendered | ( | ) |
Mark all aircraft as unrendered.
Definition at line 96 of file simulatedaircraftlist.cpp.
| bool swift::misc::simulation::CSimulatedAircraftList::replaceOrAddByCallsign | ( | const CSimulatedAircraft & | aircraft | ) |
Replace or add by callsign.
Definition at line 265 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setAircraftModel | ( | const aviation::CCallsign & | callsign, |
| const CAircraftModel & | model, | ||
| bool | onlyFirst = true ) |
Set model.
Definition at line 172 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setAircraftPartsSynchronized | ( | const aviation::CCallsign & | callsign, |
| const aviation::CAircraftParts & | parts, | ||
| bool | onlyFirst = true ) |
Set aircraft parts and mark as synchronized.
Definition at line 188 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setAircraftSituation | ( | const aviation::CCallsign & | callsign, |
| const aviation::CAircraftSituation & | situation, | ||
| bool | onlyFirst = true ) |
Set aircraft situation.
Definition at line 206 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setCG | ( | const aviation::CCallsign & | callsign, |
| const physical_quantities::CLength & | cg, | ||
| bool | onlyFirst = true ) |
Set center of gravity.
Definition at line 124 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setEnabled | ( | const aviation::CCallsign & | callsign, |
| bool | enabled, | ||
| bool | onlyFirst ) |
Mark given callsign as enabled.
Definition at line 156 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setFastPositionUpdates | ( | const aviation::CCallsign & | callsign, |
| bool | fastPositions, | ||
| bool | onlyFirst = true ) |
Mark as fast position enabled.
Definition at line 140 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setGroundElevationChecked | ( | const aviation::CCallsign & | callsign, |
| const geo::CElevationPlane & | elevation, | ||
| aviation::CAircraftSituation::GndElevationInfo | info, | ||
| bool | onlyFirst = true ) |
Set ground elevation.
Definition at line 222 of file simulatedaircraftlist.cpp.
| int swift::misc::simulation::CSimulatedAircraftList::setRendered | ( | const aviation::CCallsign & | callsign, |
| bool | rendered, | ||
| bool | onlyFirst = true ) |
Mark given callsign as rendered.
Definition at line 108 of file simulatedaircraftlist.cpp.
| void swift::misc::simulation::CSimulatedAircraftList::sortByDistanceToReferencePositionRenderedCallsign | ( | ) |
Same as sortByDistanceToReferencePosition, but consider callsign and rendered as secondary criteria.
Definition at line 321 of file simulatedaircraftlist.cpp.
| bool swift::misc::simulation::CSimulatedAircraftList::updateWithVatsimDataFileData | ( | CSimulatedAircraft & | aircraftToBeUpdated | ) | const |
Update aircraft with data from VATSIM data file.
Definition at line 72 of file simulatedaircraftlist.cpp.