FlightGear next
CarrierDiagram Class Reference

#include <CarrierDiagram.hxx>

Inherits BaseDiagram.

Signals

void locationChanged ()
 
void offsetChanged ()
 

Public Member Functions

 CarrierDiagram (QQuickItem *pr=nullptr)
 
void setGeod (QmlGeod geod)
 
QmlGeod geod () const
 
void setGeod (const SGGeod &geod)
 
bool isOffsetEnabled () const
 
bool isAbeam () const
 
void setOffsetEnabled (bool offset)
 
void setAbeam (bool abeam)
 
void setOffsetDistance (QuantityValue distance)
 
QuantityValue offsetDistance () const
 
- 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 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

QmlGeod geod
 
bool offsetEnabled
 
bool abeam
 
QuantityValue offsetDistance
 

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 31 of file CarrierDiagram.hxx.

Constructor & Destructor Documentation

◆ CarrierDiagram()

CarrierDiagram::CarrierDiagram ( QQuickItem * pr = nullptr)

Definition at line 32 of file CarrierDiagram.cxx.

Member Function Documentation

◆ doComputeBounds()

void CarrierDiagram::doComputeBounds ( )
overrideprotectedvirtual

Reimplemented from BaseDiagram.

Definition at line 131 of file CarrierDiagram.cxx.

◆ geod()

QmlGeod CarrierDiagram::geod ( ) const

Definition at line 42 of file CarrierDiagram.cxx.

◆ isAbeam()

bool CarrierDiagram::isAbeam ( ) const
inline

Definition at line 53 of file CarrierDiagram.hxx.

◆ isOffsetEnabled()

bool CarrierDiagram::isOffsetEnabled ( ) const
inline

Definition at line 50 of file CarrierDiagram.hxx.

◆ locationChanged

void CarrierDiagram::locationChanged ( )
signal

◆ offsetChanged

void CarrierDiagram::offsetChanged ( )
signal

◆ offsetDistance()

QuantityValue CarrierDiagram::offsetDistance ( ) const
inline

Definition at line 60 of file CarrierDiagram.hxx.

◆ paintContents()

void CarrierDiagram::paintContents ( QPainter * painter)
overrideprotectedvirtual

Reimplemented from BaseDiagram.

Definition at line 84 of file CarrierDiagram.cxx.

◆ setAbeam()

void CarrierDiagram::setAbeam ( bool abeam)

Definition at line 65 of file CarrierDiagram.cxx.

◆ setGeod() [1/2]

void CarrierDiagram::setGeod ( const SGGeod & geod)

Definition at line 47 of file CarrierDiagram.cxx.

◆ setGeod() [2/2]

void CarrierDiagram::setGeod ( QmlGeod geod)

Definition at line 37 of file CarrierDiagram.cxx.

◆ setOffsetDistance()

void CarrierDiagram::setOffsetDistance ( QuantityValue distance)

Definition at line 74 of file CarrierDiagram.cxx.

◆ setOffsetEnabled()

void CarrierDiagram::setOffsetEnabled ( bool offset)

Definition at line 56 of file CarrierDiagram.cxx.

Property Documentation

◆ abeam

bool CarrierDiagram::abeam
readwrite

Definition at line 37 of file CarrierDiagram.hxx.

◆ geod

QmlGeod CarrierDiagram::geod
readwrite

Definition at line 35 of file CarrierDiagram.hxx.

◆ offsetDistance

QuantityValue CarrierDiagram::offsetDistance
readwrite

Definition at line 38 of file CarrierDiagram.hxx.

◆ offsetEnabled

bool CarrierDiagram::offsetEnabled
readwrite

Definition at line 36 of file CarrierDiagram.hxx.


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