|
Qt Virtual Chart Table (QVCT)
|
Generic instrument. More...
#include <overlays/vessel/widgets/instruments/CInstrument.hpp>
Protected Member Functions | |
| 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... | |
| virtual void | draw ()=0 |
| Draws the instrument (resets if the vessel is undefined) More... | |
Generic instrument.
This class defines the base object required to draw a navigation 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 38 of file CInstrument.hpp.
|
protected |
Definition at line 31 of file CInstrument.cpp.
|
inlineprotectedvirtual |
Definition at line 48 of file CInstrument.hpp.
|
protectedvirtual |
Definition at line 40 of file CInstrument.cpp.
|
protected |
Returns parent cockpit's associated vessel (0 if the vessel is undefined)
Definition at line 54 of file CInstrument.cpp.
|
protectedpure virtual |
Draws the instrument (resets if the vessel is undefined)
Implemented in CInstrumentGASpeedVertical, CInstrumentGASpeed, CInstrumentGAHorizontalSituation, CInstrumentGAChronograph, CInstrumentGAArtificialHorizon, and CInstrumentGAAltimeter.