|
FlightGear next
|
#include <AirportDiagram.hxx>
Inherits BaseDiagram.
Signals | |
| void | clicked (QmlPositioned *pos) |
| void | selectionChanged () |
| void | airportChanged () |
| void | approachExtensionChanged () |
Public Member Functions | |
| AirportDiagram (QQuickItem *pr=nullptr) | |
| virtual | ~AirportDiagram () |
| void | setAirport (FGAirportRef apt) |
| void | addRunway (FGRunwayRef rwy) |
| void | addParking (FGParkingRef park) |
| void | addHelipad (FGHelipadRef pad) |
| QmlPositioned * | selection () const |
| void | setSelection (QmlPositioned *pos) |
| void | setApproachExtension (QuantityValue distance) |
| QuantityValue | approachExtension () const |
| qlonglong | airportGuid () const |
| void | setAirportGuid (qlonglong guid) |
| bool | approachExtensionEnabled () const |
| void | setApproachExtensionEnabled (bool e) |
Public Member Functions inherited from BaseDiagram | |
| BaseDiagram (QQuickItem *pr=nullptr) | |
| void | setAircraftType (LauncherController::AircraftType type) |
| QRect | rect () const |
| Q_INVOKABLE void | resetZoom () |
Protected Member Functions | |
| void | mouseReleaseEvent (QMouseEvent *me) override |
| void | paintContents (QPainter *) override |
| void | doComputeBounds () override |
Protected Member Functions inherited from BaseDiagram | |
| void | paint (QPainter *p) override |
| void | mousePressEvent (QMouseEvent *me) override |
| void | mouseMoveEvent (QMouseEvent *me) override |
| void | wheelEvent (QWheelEvent *we) override |
| void | recomputeBounds (bool resetZoom) |
| void | extendBounds (const QPointF &p, double radiusM=1.0) |
| QPointF | project (const SGGeod &geod) const |
| QTransform | transform () const |
| void | clearIgnoredNavaids () |
| void | addIgnoredNavaid (FGPositionedRef pos) |
| void | paintAirplaneIcon (QPainter *painter, const SGGeod &geod, int headingDeg) |
| void | paintCarrierIcon (QPainter *painter, const SGGeod &geod, int headingDeg) |
| void | paintAirways (QPainter *painter, const FGPositionedList &navs) |
| QPointF | projectedPosition (PositionedID pid) const |
| QPointF | projectedPosition (FGPositionedRef pos) const |
Properties | |
| QmlPositioned * | selection |
| qlonglong | airport |
| bool | approachExtensionEnabled |
| QuantityValue | approachExtension |
Additional Inherited Members | |
Public Types inherited from BaseDiagram | |
| enum | IconOption { NoOptions = 0 , SmallIcons = 0x1 , LargeAirportPlans = 0x2 } |
Static Public Member Functions inherited from BaseDiagram | |
| static QPixmap | iconForPositioned (const FGPositionedRef &pos, const IconOptions &options=NoOptions) |
| static QPixmap | iconForAirport (FGAirport *apt, const IconOptions &options=NoOptions) |
| static QVector< QLineF > | projectAirportRuwaysIntoRect (FGAirportRef apt, const QRectF &bounds) |
| static QVector< QLineF > | projectAirportRuwaysWithCenter (FGAirportRef apt, const SGGeod &c) |
Static Protected Member Functions inherited from BaseDiagram | |
| static void | extendRect (QRectF &r, const QPointF &p) |
| static QPointF | project (const SGGeod &geod, const SGGeod ¢er) |
| static SGGeod | unproject (const QPointF &xy, const SGGeod ¢er) |
Protected Attributes inherited from BaseDiagram | |
| SGGeod | m_projectionCenter |
| double | m_scale |
| QRectF | m_bounds |
| bool | m_autoScalePan |
| QPointF | m_panOffset |
| QPointF | m_lastMousePos |
| int | m_wheelAngleDeltaAccumulator |
| bool | m_didPan |
| LauncherController::AircraftType | m_aircraftType = LauncherController::Airplane |
Definition at line 37 of file AirportDiagram.hxx.
| AirportDiagram::AirportDiagram | ( | QQuickItem * | pr = nullptr | ) |
Definition at line 90 of file AirportDiagram.cxx.
|
virtual |
Definition at line 123 of file AirportDiagram.cxx.
| void AirportDiagram::addHelipad | ( | FGHelipadRef | pad | ) |
Definition at line 296 of file AirportDiagram.cxx.
| void AirportDiagram::addParking | ( | FGParkingRef | park | ) |
Definition at line 288 of file AirportDiagram.cxx.
| void AirportDiagram::addRunway | ( | FGRunwayRef | rwy | ) |
Definition at line 240 of file AirportDiagram.cxx.
|
signal |
| qlonglong AirportDiagram::airportGuid | ( | ) | const |
Definition at line 212 of file AirportDiagram.cxx.
| QuantityValue AirportDiagram::approachExtension | ( | ) | const |
Definition at line 199 of file AirportDiagram.cxx.
|
signal |
|
inline |
Definition at line 66 of file AirportDiagram.hxx.
|
signal |
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 260 of file AirportDiagram.cxx.
|
overrideprotected |
Definition at line 558 of file AirportDiagram.cxx.
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 304 of file AirportDiagram.cxx.
| QmlPositioned * AirportDiagram::selection | ( | ) | const |
Definition at line 204 of file AirportDiagram.cxx.
|
signal |
| void AirportDiagram::setAirport | ( | FGAirportRef | apt | ) |
Definition at line 128 of file AirportDiagram.cxx.
| void AirportDiagram::setAirportGuid | ( | qlonglong | guid | ) |
Definition at line 219 of file AirportDiagram.cxx.
| void AirportDiagram::setApproachExtension | ( | QuantityValue | distance | ) |
Definition at line 187 of file AirportDiagram.cxx.
| void AirportDiagram::setApproachExtensionEnabled | ( | bool | e | ) |
Definition at line 230 of file AirportDiagram.cxx.
| void AirportDiagram::setSelection | ( | QmlPositioned * | pos | ) |
Definition at line 171 of file AirportDiagram.cxx.
|
readwrite |
Definition at line 42 of file AirportDiagram.hxx.
|
readwrite |
Definition at line 45 of file AirportDiagram.hxx.
|
readwrite |
Definition at line 44 of file AirportDiagram.hxx.
|
readwrite |
Definition at line 41 of file AirportDiagram.hxx.