Qt Virtual Chart Table (QVCT)
CInstrumentGASpeed Class Reference

General aviation speed (instrument) More...

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

Inheritance diagram for CInstrumentGASpeed:
CInstrument

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

Detailed Description

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

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

Definition at line 39 of file CInstrumentGASpeed.hpp.

Constructor & Destructor Documentation

◆ CInstrumentGASpeed()

CInstrumentGASpeed::CInstrumentGASpeed ( CVesselCockpit *  _poVesselCockpit)

Definition at line 41 of file CInstrumentGASpeed.cpp.

◆ ~CInstrumentGASpeed()

virtual CInstrumentGASpeed::~CInstrumentGASpeed ( )
inlinevirtual

Definition at line 65 of file CInstrumentGASpeed.hpp.

Member Function Documentation

◆ draw()

void CInstrumentGASpeed::draw ( )
privatevirtual

Draws the instrument (resets if the vessel is undefined)

Implements CInstrument.

Definition at line 54 of file CInstrumentGASpeed.cpp.

◆ drawStatic()

void CInstrumentGASpeed::drawStatic ( CUnitSpeed::EUnit  _eUnit)
private

Definition at line 99 of file CInstrumentGASpeed.cpp.

◆ drawDynamic()

void CInstrumentGASpeed::drawDynamic ( CUnitSpeed::EUnit  _eUnit,
const CVesselPoint *  _poVesselPoint 
)
private

Definition at line 183 of file CInstrumentGASpeed.cpp.

Member Data Documentation

◆ qPixmapBufferBackground

QPixmap CInstrumentGASpeed::qPixmapBufferBackground
private

Pixmap buffer used to render and cache the instrument's (static) background.

Definition at line 47 of file CInstrumentGASpeed.hpp.

◆ qPixmapBuffer

QPixmap CInstrumentGASpeed::qPixmapBuffer
private

Pixmap buffer used to render and cache the instrument.

Definition at line 49 of file CInstrumentGASpeed.hpp.

◆ bForceRedraw

bool CInstrumentGASpeed::bForceRedraw
private

Forces the redraw of the instrument (not matter its cache content)

Definition at line 52 of file CInstrumentGASpeed.hpp.

◆ eUnit

CUnitSpeed::EUnit CInstrumentGASpeed::eUnit
private

Unit for which the last rendering was achieved.

Definition at line 54 of file CInstrumentGASpeed.hpp.

◆ fdSpeed

double CInstrumentGASpeed::fdSpeed
private

Speed at which the last rendering was achieved.

Definition at line 56 of file CInstrumentGASpeed.hpp.


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