|
Qt Virtual Chart Table (QVCT)
|
General aviation altimeter (instrument) More...
#include <overlays/vessel/widgets/instruments/CInstrumentGAAltimeter.hpp>
Public Member Functions | |
| CInstrumentGAAltimeter (CVesselCockpit *_poVesselCockpit) | |
| virtual | ~CInstrumentGAAltimeter () |
Private Member Functions | |
| virtual void | draw () |
| Draws the instrument (resets if the vessel is undefined) More... | |
| void | drawStatic (CUnitElevation::EUnit _eUnit) |
| void | drawDynamic (CUnitElevation::EUnit _eUnit, const CVesselPoint *_poVesselPoint) |
Private Attributes | |
| QPixmap | qPixmapBufferBackground |
| Pixmap buffer used to render and cache the instrument's (static) background. 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... | |
| CUnitElevation::EUnit | eUnit |
| Unit for which the last rendering was achieved. More... | |
| double | fdElevation |
| Elevation at which the last rendering was achieved. More... | |
Additional Inherited Members | |
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... | |
General aviation altimeter (instrument)
This class allows to draw a general aviation (analogic) altimeter. 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 39 of file CInstrumentGAAltimeter.hpp.
| CInstrumentGAAltimeter::CInstrumentGAAltimeter | ( | CVesselCockpit * | _poVesselCockpit | ) |
Definition at line 41 of file CInstrumentGAAltimeter.cpp.
|
inlinevirtual |
Definition at line 65 of file CInstrumentGAAltimeter.hpp.
|
privatevirtual |
Draws the instrument (resets if the vessel is undefined)
Implements CInstrument.
Definition at line 54 of file CInstrumentGAAltimeter.cpp.
|
private |
Definition at line 99 of file CInstrumentGAAltimeter.cpp.
|
private |
Definition at line 172 of file CInstrumentGAAltimeter.cpp.
|
private |
Pixmap buffer used to render and cache the instrument's (static) background.
Definition at line 47 of file CInstrumentGAAltimeter.hpp.
|
private |
Pixmap buffer used to render and cache the instrument.
Definition at line 49 of file CInstrumentGAAltimeter.hpp.
|
private |
Forces the redraw of the instrument (not matter its cache content)
Definition at line 52 of file CInstrumentGAAltimeter.hpp.
|
private |
Unit for which the last rendering was achieved.
Definition at line 54 of file CInstrumentGAAltimeter.hpp.
|
private |
Elevation at which the last rendering was achieved.
Definition at line 56 of file CInstrumentGAAltimeter.hpp.