FlightGear next
|
#include <RouteDiagram.hxx>
Inherits BaseDiagram.
Public Slots | |
void | setActiveLegIndex (int activeLegIndex) |
Signals | |
void | flightplanChanged (FlightPlanController *flightplan) |
void | legIndexChanged (int activeLegIndex) |
Public Member Functions | |
RouteDiagram (QQuickItem *pr=nullptr) | |
FlightPlanController * | flightplan () const |
void | setFlightplan (FlightPlanController *fp) |
int | numLegs () const |
int | activeLegIndex () 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 | |
FlightPlanController * | flightplan |
int | activeLegIndex |
int | numLegs |
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 35 of file RouteDiagram.hxx.
RouteDiagram::RouteDiagram | ( | QQuickItem * | pr = nullptr | ) |
Definition at line 35 of file RouteDiagram.cxx.
|
inline |
Definition at line 55 of file RouteDiagram.hxx.
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 129 of file RouteDiagram.cxx.
|
inline |
Definition at line 46 of file RouteDiagram.hxx.
|
signal |
|
signal |
int RouteDiagram::numLegs | ( | ) | const |
Definition at line 64 of file RouteDiagram.cxx.
|
overrideprotectedvirtual |
Reimplemented from BaseDiagram.
Definition at line 95 of file RouteDiagram.cxx.
|
slot |
Definition at line 76 of file RouteDiagram.cxx.
void RouteDiagram::setFlightplan | ( | FlightPlanController * | fp | ) |
Definition at line 40 of file RouteDiagram.cxx.
|
readwrite |
Definition at line 41 of file RouteDiagram.hxx.
|
readwrite |
Definition at line 39 of file RouteDiagram.hxx.
|
read |
Definition at line 42 of file RouteDiagram.hxx.