FlightGear next
|
#include <NavaidDiagram.hxx>
Inherits BaseDiagram.
Signals | |
void | locationChanged () |
void | offsetChanged () |
Public Member Functions | |
NavaidDiagram (QQuickItem *pr=nullptr) | |
void | setNavaid (qlonglong nav) |
qlonglong | navaid () const |
void | setGeod (QmlGeod geod) |
QmlGeod | geod () const |
void | setGeod (const SGGeod &geod) |
bool | isOffsetEnabled () const |
void | setOffsetEnabled (bool offset) |
void | setOffsetDistance (QuantityValue distance) |
QuantityValue | offsetDistance () const |
void | setOffsetBearing (QuantityValue bearing) |
QuantityValue | offsetBearing () const |
void | setHeading (QuantityValue heading) |
QuantityValue | heading () const |
![]() | |
BaseDiagram (QQuickItem *pr=nullptr) | |
void | setAircraftType (LauncherController::AircraftType type) |
QRect | rect () const |
Q_INVOKABLE void | resetZoom () |
Protected Member Functions | |
void | paintContents (QPainter *) override |
void | doComputeBounds () override |
![]() | |
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 | |
qlonglong | navaid |
QmlGeod | geod |
QuantityValue | heading |
QuantityValue | offsetBearing |
bool | offsetEnabled |
QuantityValue | offsetDistance |
Additional Inherited Members | |
![]() | |
enum | IconOption { NoOptions = 0 , SmallIcons = 0x1 , LargeAirportPlans = 0x2 } |
![]() | |
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 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) |
![]() | |
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 31 of file NavaidDiagram.hxx.
NavaidDiagram::NavaidDiagram | ( | QQuickItem * | pr = nullptr | ) |
Definition at line 32 of file NavaidDiagram.cxx.
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 125 of file NavaidDiagram.cxx.
QmlGeod NavaidDiagram::geod | ( | ) | const |
Definition at line 56 of file NavaidDiagram.cxx.
|
inline |
Definition at line 67 of file NavaidDiagram.hxx.
|
inline |
Definition at line 53 of file NavaidDiagram.hxx.
|
signal |
qlonglong NavaidDiagram::navaid | ( | ) | const |
Definition at line 46 of file NavaidDiagram.cxx.
|
inline |
Definition at line 63 of file NavaidDiagram.hxx.
|
signal |
|
inline |
Definition at line 59 of file NavaidDiagram.hxx.
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 103 of file NavaidDiagram.cxx.
void NavaidDiagram::setGeod | ( | const SGGeod & | geod | ) |
Definition at line 61 of file NavaidDiagram.cxx.
void NavaidDiagram::setGeod | ( | QmlGeod | geod | ) |
Definition at line 51 of file NavaidDiagram.cxx.
void NavaidDiagram::setHeading | ( | QuantityValue | heading | ) |
Definition at line 96 of file NavaidDiagram.cxx.
void NavaidDiagram::setNavaid | ( | qlonglong | nav | ) |
Definition at line 37 of file NavaidDiagram.cxx.
void NavaidDiagram::setOffsetBearing | ( | QuantityValue | bearing | ) |
Definition at line 89 of file NavaidDiagram.cxx.
void NavaidDiagram::setOffsetDistance | ( | QuantityValue | distance | ) |
Definition at line 79 of file NavaidDiagram.cxx.
void NavaidDiagram::setOffsetEnabled | ( | bool | offset | ) |
Definition at line 70 of file NavaidDiagram.cxx.
|
readwrite |
Definition at line 36 of file NavaidDiagram.hxx.
|
readwrite |
Definition at line 38 of file NavaidDiagram.hxx.
|
readwrite |
Definition at line 35 of file NavaidDiagram.hxx.
|
readwrite |
Definition at line 39 of file NavaidDiagram.hxx.
|
readwrite |
Definition at line 41 of file NavaidDiagram.hxx.
|
readwrite |
Definition at line 40 of file NavaidDiagram.hxx.