|
Qt Virtual Chart Table (QVCT)
|
General aviation horizontal situation indicator / HSI (instrument) More...
#include <overlays/vessel/widgets/instruments/CInstrumentGAHorizontalSituation.hpp>
Public Member Functions | |
| CInstrumentGAHorizontalSituation (CVesselCockpit *_poVesselCockpit) | |
| virtual | ~CInstrumentGAHorizontalSituation () |
Protected Member Functions | |
| virtual void | mouseReleaseEvent (QMouseEvent *_pqMouseEvent) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *_pqMouseEvent) |
Protected Member Functions inherited from CInstrument | |
| CInstrument (CVesselCockpit *_poVesselCockpit) | |
| virtual | ~CInstrument () |
| virtual void | paintEvent (QPaintEvent *_pqPaintEvent) |
| CVesselPoint * | useVesselPoint () |
| Returns parent cockpit's associated vessel (0 if the vessel is undefined) More... | |
Private Member Functions | |
| virtual void | draw () |
| Draws the instrument (resets if the vessel is undefined) More... | |
| void | drawStatic () |
| void | drawDynamic (const CVesselPoint *_poVesselPoint, const CPointerPoint *_poPointerPoint) |
Private Attributes | |
| QPixmap | qPixmapBufferBackground |
| Pixmap buffer used to render and cache the instrument's (static) background. More... | |
| QPixmap | qPixmapBufferBearing |
| Pixmap buffer used to render and cache the instrument's (static) bearing corona. More... | |
| QPixmap | qPixmapBufferTarget |
| Pixmap buffer used to render and cache the instrument's (static) target indicator. More... | |
| QPixmap | qPixmapBufferForeground |
| Pixmap buffer used to render and cache the instrument's (static) foreground. More... | |
| QPixmap | qPixmapBuffer |
| Pixmap buffer used to render and cache the instrument. More... | |
| bool | bForceRedraw |
| Forces the redraw of the instrument (not matter its cache content) More... | |
| double | fdBearingVessel |
| (Vessel) bearing at which the last rendering was achieved More... | |
| CDataPosition | oPositionTarget |
| Target (position) for which the last rendering was achieved. More... | |
| double | fdBearingRadial |
| Radial bearing. More... | |
General aviation horizontal situation indicator / HSI (instrument)
This class allows to draw a general aviation (analogic) horizontal situation indicator (HSI). The required radial can be adjusted by clicking on the left (decrease) or right (increase) hand side of the instrument. It includes the logic that allows to cache the necessary QPixmap(s) required to draw the instrument and avoid to "re-render" it each time it is "refreshed".
Definition at line 42 of file CInstrumentGAHorizontalSituation.hpp.
| CInstrumentGAHorizontalSituation::CInstrumentGAHorizontalSituation | ( | CVesselCockpit * | _poVesselCockpit | ) |
Definition at line 43 of file CInstrumentGAHorizontalSituation.cpp.
|
inlinevirtual |
Definition at line 77 of file CInstrumentGAHorizontalSituation.hpp.
|
protectedvirtual |
Definition at line 57 of file CInstrumentGAHorizontalSituation.cpp.
|
protectedvirtual |
Definition at line 78 of file CInstrumentGAHorizontalSituation.cpp.
|
privatevirtual |
Draws the instrument (resets if the vessel is undefined)
Implements CInstrument.
Definition at line 105 of file CInstrumentGAHorizontalSituation.cpp.
|
private |
Definition at line 149 of file CInstrumentGAHorizontalSituation.cpp.
|
private |
Definition at line 341 of file CInstrumentGAHorizontalSituation.cpp.
|
private |
Pixmap buffer used to render and cache the instrument's (static) background.
Definition at line 50 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Pixmap buffer used to render and cache the instrument's (static) bearing corona.
Definition at line 52 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Pixmap buffer used to render and cache the instrument's (static) target indicator.
Definition at line 54 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Pixmap buffer used to render and cache the instrument's (static) foreground.
Definition at line 56 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Pixmap buffer used to render and cache the instrument.
Definition at line 58 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Forces the redraw of the instrument (not matter its cache content)
Definition at line 61 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
(Vessel) bearing at which the last rendering was achieved
Definition at line 63 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Target (position) for which the last rendering was achieved.
Definition at line 65 of file CInstrumentGAHorizontalSituation.hpp.
|
private |
Radial bearing.
Definition at line 68 of file CInstrumentGAHorizontalSituation.hpp.