Qt Virtual Chart Table (QVCT)
CInstrumentGASpeedVertical Class Reference

General aviation vertical speed (instrument) More...

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

Inheritance diagram for CInstrumentGASpeedVertical:
CInstrument

Public Member Functions

 CInstrumentGASpeedVertical (CVesselCockpit *_poVesselCockpit)
 
virtual ~CInstrumentGASpeedVertical ()
 

Private Member Functions

virtual void draw ()
 Draws the instrument (resets if the vessel is undefined) More...
 
void drawStatic (CUnitSpeedVertical::EUnit _eUnit)
 
void drawDynamic (CUnitSpeedVertical::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...
 
CUnitSpeedVertical::EUnit eUnit
 Unit for which the last rendering was achieved. More...
 
double fdSpeedVertical
 Vertical 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 vertical speed (instrument)

This class allows to draw a general aviation (analogic) speedVertical. 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 CInstrumentGASpeedVertical.hpp.

Constructor & Destructor Documentation

◆ CInstrumentGASpeedVertical()

CInstrumentGASpeedVertical::CInstrumentGASpeedVertical ( CVesselCockpit *  _poVesselCockpit)

Definition at line 41 of file CInstrumentGASpeedVertical.cpp.

◆ ~CInstrumentGASpeedVertical()

virtual CInstrumentGASpeedVertical::~CInstrumentGASpeedVertical ( )
inlinevirtual

Definition at line 65 of file CInstrumentGASpeedVertical.hpp.

Member Function Documentation

◆ draw()

void CInstrumentGASpeedVertical::draw ( )
privatevirtual

Draws the instrument (resets if the vessel is undefined)

Implements CInstrument.

Definition at line 54 of file CInstrumentGASpeedVertical.cpp.

◆ drawStatic()

void CInstrumentGASpeedVertical::drawStatic ( CUnitSpeedVertical::EUnit  _eUnit)
private

Definition at line 99 of file CInstrumentGASpeedVertical.cpp.

◆ drawDynamic()

void CInstrumentGASpeedVertical::drawDynamic ( CUnitSpeedVertical::EUnit  _eUnit,
const CVesselPoint *  _poVesselPoint 
)
private

Definition at line 184 of file CInstrumentGASpeedVertical.cpp.

Member Data Documentation

◆ qPixmapBufferBackground

QPixmap CInstrumentGASpeedVertical::qPixmapBufferBackground
private

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

Definition at line 47 of file CInstrumentGASpeedVertical.hpp.

◆ qPixmapBuffer

QPixmap CInstrumentGASpeedVertical::qPixmapBuffer
private

Pixmap buffer used to render and cache the instrument.

Definition at line 49 of file CInstrumentGASpeedVertical.hpp.

◆ bForceRedraw

bool CInstrumentGASpeedVertical::bForceRedraw
private

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

Definition at line 52 of file CInstrumentGASpeedVertical.hpp.

◆ eUnit

CUnitSpeedVertical::EUnit CInstrumentGASpeedVertical::eUnit
private

Unit for which the last rendering was achieved.

Definition at line 54 of file CInstrumentGASpeedVertical.hpp.

◆ fdSpeedVertical

double CInstrumentGASpeedVertical::fdSpeedVertical
private

Vertical speed at which the last rendering was achieved.

Definition at line 56 of file CInstrumentGASpeedVertical.hpp.


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