All Classes Files Functions Enumerations Enumerator Macros
qfi_NAV.h
Go to the documentation of this file.
/***************************************************************************/
#ifndef QFI_NAV_H
#define QFI_NAV_H
#include <QGraphicsView>
#include <QGraphicsSvgItem>
class qfi_NAV : public QGraphicsView
{
Q_OBJECT
public:
explicit qfi_NAV( QWidget *parent = 0 );
virtual ~qfi_NAV();
void reinit();
void update();
void setHeading( float heading );
void setHeadingBug( float headingBug );
void setCourse( float course );
void setBearing( float bearing, bool visible = false );
void setDeviation( float deviation, bool visible = false );
void setDistance( float distance, bool visible = false );
protected:
void resizeEvent( QResizeEvent *event );
private:
QGraphicsScene *m_scene;
QGraphicsSvgItem *m_itemBack;
QGraphicsSvgItem *m_itemMask;
QGraphicsSvgItem *m_itemMark;
QGraphicsSvgItem *m_itemBrgArrow;
QGraphicsSvgItem *m_itemCrsArrow;
QGraphicsSvgItem *m_itemDevBar;
QGraphicsSvgItem *m_itemDevScale;
QGraphicsSvgItem *m_itemHdgBug;
QGraphicsSvgItem *m_itemHdgScale;
QGraphicsTextItem *m_itemCrsText;
QGraphicsTextItem *m_itemHdgText;
QGraphicsTextItem *m_itemDmeText;
QColor m_crsTextColor;
QColor m_hdgTextColor;
QColor m_dmeTextColor;
QFont m_crsTextFont;
QFont m_hdgTextFont;
QFont m_dmeTextFont;
float m_heading;
float m_headingBug;
float m_course;
float m_bearing;
float m_deviation;
float m_distance;
bool m_bearingVisible;
bool m_deviationVisible;
bool m_distanceVisible;
float m_devBarDeltaX_new;
float m_devBarDeltaX_old;
float m_devBarDeltaY_new;
float m_devBarDeltaY_old;
float m_scaleX;
float m_scaleY;
float m_originalPixPerDev;
QPointF m_originalNavCtr;
QPointF m_originalCrsTextCtr;
QPointF m_originalHdgTextCtr;
QPointF m_originalDmeTextCtr;
const int m_originalHeight;
const int m_originalWidth;
const int m_backZ;
const int m_maskZ;
const int m_markZ;
const int m_brgArrowZ;
const int m_crsArrowZ;
const int m_crsTextZ;
const int m_devBarZ;
const int m_devScaleZ;
const int m_hdgBugZ;
const int m_hdgScaleZ;
const int m_hdgTextZ;
const int m_dmeTextZ;
void init();
void reset();
void updateView();
};
#endif // QFI_NAV_H
qfi_NAV::reinit
void reinit()
Definition: qfi_NAV.cpp:193
qfi_NAV::setBearing
void setBearing(float bearing, bool visible=false)
Definition: qfi_NAV.cpp:245
qfi_NAV::setCourse
void setCourse(float course)
Definition: qfi_NAV.cpp:235
qfi_NAV::setHeading
void setHeading(float heading)
Definition: qfi_NAV.cpp:215
qfi_NAV::setDistance
void setDistance(float distance, bool visible=false)
Definition: qfi_NAV.cpp:267
qfi_NAV::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_NAV.cpp:275
qfi_NAV
Definition: qfi_NAV.h:59
qfi_NAV::~qfi_NAV
virtual ~qfi_NAV()
Definition: qfi_NAV.cpp:179
qfi_NAV::update
void update()
Definition: qfi_NAV.cpp:205
qfi_NAV::setHeadingBug
void setHeadingBug(float headingBug)
Definition: qfi_NAV.cpp:225
qfi_NAV::qfi_NAV
qfi_NAV(QWidget *parent=0)
Definition: qfi_NAV.cpp:67
qfi_NAV::setDeviation
void setDeviation(float deviation, bool visible=false)
Definition: qfi_NAV.cpp:256