Qt Virtual Chart Table (QVCT)
CInstrument Class Referenceabstract

Generic instrument. More...

#include <overlays/vessel/widgets/instruments/CInstrument.hpp>

Inheritance diagram for CInstrument:
CInstrumentGAAltimeter CInstrumentGAArtificialHorizon CInstrumentGAChronograph CInstrumentGAHorizontalSituation CInstrumentGASpeed CInstrumentGASpeedVertical

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...
 

Detailed Description

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".

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 38 of file CInstrument.hpp.

Constructor & Destructor Documentation

◆ CInstrument()

CInstrument::CInstrument ( CVesselCockpit *  _poVesselCockpit)
protected

Definition at line 31 of file CInstrument.cpp.

◆ ~CInstrument()

virtual CInstrument::~CInstrument ( )
inlineprotectedvirtual

Definition at line 48 of file CInstrument.hpp.

Member Function Documentation

◆ paintEvent()

void CInstrument::paintEvent ( QPaintEvent *  _pqPaintEvent)
protectedvirtual

Definition at line 40 of file CInstrument.cpp.

◆ useVesselPoint()

CVesselPoint * CInstrument::useVesselPoint ( )
protected

Returns parent cockpit's associated vessel (0 if the vessel is undefined)

Definition at line 54 of file CInstrument.cpp.

◆ draw()

virtual void CInstrument::draw ( )
protectedpure virtual

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