Qt Virtual Chart Table (QVCT)
CInstrumentGAHorizontalSituation Class Reference

General aviation horizontal situation indicator / HSI (instrument) More...

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

Inheritance diagram for CInstrumentGAHorizontalSituation:
CInstrument

Public Member Functions

 CInstrumentGAHorizontalSituation (CVesselCockpit *_poVesselCockpit)
 
virtual ~CInstrumentGAHorizontalSituation ()
 

Protected Member Functions

virtual void mouseReleaseEvent (QMouseEvent *_pqMouseEvent)
 
virtual void mouseDoubleClickEvent (QMouseEvent *_pqMouseEvent)
 
- 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...
 

Private Member Functions

virtual void draw ()
 Draws the instrument (resets if the vessel is undefined) More...
 
void drawStatic ()
 
void drawDynamic (const CVesselPoint *_poVesselPoint, const CPointerPoint *_poPointerPoint)
 

Private Attributes

QPixmap qPixmapBufferBackground
 Pixmap buffer used to render and cache the instrument's (static) background. More...
 
QPixmap qPixmapBufferBearing
 Pixmap buffer used to render and cache the instrument's (static) bearing corona. More...
 
QPixmap qPixmapBufferTarget
 Pixmap buffer used to render and cache the instrument's (static) target indicator. More...
 
QPixmap qPixmapBufferForeground
 Pixmap buffer used to render and cache the instrument's (static) foreground. 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...
 
double fdBearingVessel
 (Vessel) bearing at which the last rendering was achieved More...
 
CDataPosition oPositionTarget
 Target (position) for which the last rendering was achieved. More...
 
double fdBearingRadial
 Radial bearing. More...
 

Detailed Description

General aviation horizontal situation indicator / HSI (instrument)

This class allows to draw a general aviation (analogic) horizontal situation indicator (HSI). The required radial can be adjusted by clicking on the left (decrease) or right (increase) hand side of the 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 42 of file CInstrumentGAHorizontalSituation.hpp.

Constructor & Destructor Documentation

◆ CInstrumentGAHorizontalSituation()

CInstrumentGAHorizontalSituation::CInstrumentGAHorizontalSituation ( CVesselCockpit *  _poVesselCockpit)

Definition at line 43 of file CInstrumentGAHorizontalSituation.cpp.

◆ ~CInstrumentGAHorizontalSituation()

virtual CInstrumentGAHorizontalSituation::~CInstrumentGAHorizontalSituation ( )
inlinevirtual

Definition at line 77 of file CInstrumentGAHorizontalSituation.hpp.

Member Function Documentation

◆ mouseReleaseEvent()

void CInstrumentGAHorizontalSituation::mouseReleaseEvent ( QMouseEvent *  _pqMouseEvent)
protectedvirtual

Definition at line 57 of file CInstrumentGAHorizontalSituation.cpp.

◆ mouseDoubleClickEvent()

void CInstrumentGAHorizontalSituation::mouseDoubleClickEvent ( QMouseEvent *  _pqMouseEvent)
protectedvirtual

Definition at line 78 of file CInstrumentGAHorizontalSituation.cpp.

◆ draw()

void CInstrumentGAHorizontalSituation::draw ( )
privatevirtual

Draws the instrument (resets if the vessel is undefined)

Implements CInstrument.

Definition at line 105 of file CInstrumentGAHorizontalSituation.cpp.

◆ drawStatic()

void CInstrumentGAHorizontalSituation::drawStatic ( )
private

Definition at line 149 of file CInstrumentGAHorizontalSituation.cpp.

◆ drawDynamic()

void CInstrumentGAHorizontalSituation::drawDynamic ( const CVesselPoint *  _poVesselPoint,
const CPointerPoint *  _poPointerPoint 
)
private

Definition at line 341 of file CInstrumentGAHorizontalSituation.cpp.

Member Data Documentation

◆ qPixmapBufferBackground

QPixmap CInstrumentGAHorizontalSituation::qPixmapBufferBackground
private

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

Definition at line 50 of file CInstrumentGAHorizontalSituation.hpp.

◆ qPixmapBufferBearing

QPixmap CInstrumentGAHorizontalSituation::qPixmapBufferBearing
private

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

Definition at line 52 of file CInstrumentGAHorizontalSituation.hpp.

◆ qPixmapBufferTarget

QPixmap CInstrumentGAHorizontalSituation::qPixmapBufferTarget
private

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

Definition at line 54 of file CInstrumentGAHorizontalSituation.hpp.

◆ qPixmapBufferForeground

QPixmap CInstrumentGAHorizontalSituation::qPixmapBufferForeground
private

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

Definition at line 56 of file CInstrumentGAHorizontalSituation.hpp.

◆ qPixmapBuffer

QPixmap CInstrumentGAHorizontalSituation::qPixmapBuffer
private

Pixmap buffer used to render and cache the instrument.

Definition at line 58 of file CInstrumentGAHorizontalSituation.hpp.

◆ bForceRedraw

bool CInstrumentGAHorizontalSituation::bForceRedraw
private

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

Definition at line 61 of file CInstrumentGAHorizontalSituation.hpp.

◆ fdBearingVessel

double CInstrumentGAHorizontalSituation::fdBearingVessel
private

(Vessel) bearing at which the last rendering was achieved

Definition at line 63 of file CInstrumentGAHorizontalSituation.hpp.

◆ oPositionTarget

CDataPosition CInstrumentGAHorizontalSituation::oPositionTarget
private

Target (position) for which the last rendering was achieved.

Definition at line 65 of file CInstrumentGAHorizontalSituation.hpp.

◆ fdBearingRadial

double CInstrumentGAHorizontalSituation::fdBearingRadial
private

Radial bearing.

Definition at line 68 of file CInstrumentGAHorizontalSituation.hpp.


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