FlightGear next
AirportDiagram Class Reference

#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)
 
QmlPositionedselection () 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

QmlPositionedselection
 
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 &center)
 
static SGGeod unproject (const QPointF &xy, const SGGeod &center)
 
- 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
 

Detailed Description

Definition at line 37 of file AirportDiagram.hxx.

Constructor & Destructor Documentation

◆ AirportDiagram()

AirportDiagram::AirportDiagram ( QQuickItem * pr = nullptr)

Definition at line 90 of file AirportDiagram.cxx.

◆ ~AirportDiagram()

AirportDiagram::~AirportDiagram ( )
virtual

Definition at line 123 of file AirportDiagram.cxx.

Member Function Documentation

◆ addHelipad()

void AirportDiagram::addHelipad ( FGHelipadRef pad)

Definition at line 296 of file AirportDiagram.cxx.

◆ addParking()

void AirportDiagram::addParking ( FGParkingRef park)

Definition at line 288 of file AirportDiagram.cxx.

◆ addRunway()

void AirportDiagram::addRunway ( FGRunwayRef rwy)

Definition at line 240 of file AirportDiagram.cxx.

◆ airportChanged

void AirportDiagram::airportChanged ( )
signal

◆ airportGuid()

qlonglong AirportDiagram::airportGuid ( ) const

Definition at line 212 of file AirportDiagram.cxx.

◆ approachExtension()

QuantityValue AirportDiagram::approachExtension ( ) const

Definition at line 199 of file AirportDiagram.cxx.

◆ approachExtensionChanged

void AirportDiagram::approachExtensionChanged ( )
signal

◆ approachExtensionEnabled()

bool AirportDiagram::approachExtensionEnabled ( ) const
inline

Definition at line 66 of file AirportDiagram.hxx.

◆ clicked

void AirportDiagram::clicked ( QmlPositioned * pos)
signal

◆ doComputeBounds()

void AirportDiagram::doComputeBounds ( )
overrideprotectedvirtual

Reimplemented from BaseDiagram.

Definition at line 260 of file AirportDiagram.cxx.

◆ mouseReleaseEvent()

void AirportDiagram::mouseReleaseEvent ( QMouseEvent * me)
overrideprotected

Definition at line 558 of file AirportDiagram.cxx.

◆ paintContents()

void AirportDiagram::paintContents ( QPainter * p)
overrideprotectedvirtual

Reimplemented from BaseDiagram.

Definition at line 304 of file AirportDiagram.cxx.

◆ selection()

QmlPositioned * AirportDiagram::selection ( ) const

Definition at line 204 of file AirportDiagram.cxx.

◆ selectionChanged

void AirportDiagram::selectionChanged ( )
signal

◆ setAirport()

void AirportDiagram::setAirport ( FGAirportRef apt)

Definition at line 128 of file AirportDiagram.cxx.

◆ setAirportGuid()

void AirportDiagram::setAirportGuid ( qlonglong guid)

Definition at line 219 of file AirportDiagram.cxx.

◆ setApproachExtension()

void AirportDiagram::setApproachExtension ( QuantityValue distance)

Definition at line 187 of file AirportDiagram.cxx.

◆ setApproachExtensionEnabled()

void AirportDiagram::setApproachExtensionEnabled ( bool e)

Definition at line 230 of file AirportDiagram.cxx.

◆ setSelection()

void AirportDiagram::setSelection ( QmlPositioned * pos)

Definition at line 171 of file AirportDiagram.cxx.

Property Documentation

◆ airport

qlonglong AirportDiagram::airport
readwrite

Definition at line 42 of file AirportDiagram.hxx.

◆ approachExtension

QuantityValue AirportDiagram::approachExtension
readwrite

Definition at line 45 of file AirportDiagram.hxx.

◆ approachExtensionEnabled

bool AirportDiagram::approachExtensionEnabled
readwrite

Definition at line 44 of file AirportDiagram.hxx.

◆ selection

QmlPositioned* AirportDiagram::selection
readwrite

Definition at line 41 of file AirportDiagram.hxx.


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