Qt Virtual Chart Table (QVCT)
CInstrumentGAAltimeter Class Reference

General aviation altimeter (instrument) More...

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

Inheritance diagram for CInstrumentGAAltimeter:
CInstrument

Public Member Functions

 CInstrumentGAAltimeter (CVesselCockpit *_poVesselCockpit)
 
virtual ~CInstrumentGAAltimeter ()
 

Private Member Functions

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

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

Constructor & Destructor Documentation

◆ CInstrumentGAAltimeter()

CInstrumentGAAltimeter::CInstrumentGAAltimeter ( CVesselCockpit *  _poVesselCockpit)

Definition at line 41 of file CInstrumentGAAltimeter.cpp.

◆ ~CInstrumentGAAltimeter()

virtual CInstrumentGAAltimeter::~CInstrumentGAAltimeter ( )
inlinevirtual

Definition at line 65 of file CInstrumentGAAltimeter.hpp.

Member Function Documentation

◆ draw()

void CInstrumentGAAltimeter::draw ( )
privatevirtual

Draws the instrument (resets if the vessel is undefined)

Implements CInstrument.

Definition at line 54 of file CInstrumentGAAltimeter.cpp.

◆ drawStatic()

void CInstrumentGAAltimeter::drawStatic ( CUnitElevation::EUnit  _eUnit)
private

Definition at line 99 of file CInstrumentGAAltimeter.cpp.

◆ drawDynamic()

void CInstrumentGAAltimeter::drawDynamic ( CUnitElevation::EUnit  _eUnit,
const CVesselPoint *  _poVesselPoint 
)
private

Definition at line 172 of file CInstrumentGAAltimeter.cpp.

Member Data Documentation

◆ qPixmapBufferBackground

QPixmap CInstrumentGAAltimeter::qPixmapBufferBackground
private

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

Definition at line 47 of file CInstrumentGAAltimeter.hpp.

◆ qPixmapBuffer

QPixmap CInstrumentGAAltimeter::qPixmapBuffer
private

Pixmap buffer used to render and cache the instrument.

Definition at line 49 of file CInstrumentGAAltimeter.hpp.

◆ bForceRedraw

bool CInstrumentGAAltimeter::bForceRedraw
private

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

Definition at line 52 of file CInstrumentGAAltimeter.hpp.

◆ eUnit

CUnitElevation::EUnit CInstrumentGAAltimeter::eUnit
private

Unit for which the last rendering was achieved.

Definition at line 54 of file CInstrumentGAAltimeter.hpp.

◆ fdElevation

double CInstrumentGAAltimeter::fdElevation
private

Elevation at which the last rendering was achieved.

Definition at line 56 of file CInstrumentGAAltimeter.hpp.


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