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