All Classes Files Functions Enumerations Enumerator Macros
qfi_ASI.h
Go to the documentation of this file.
/***************************************************************************/
#ifndef QFI_ASI_H
#define QFI_ASI_H
#include <QGraphicsView>
#include <QGraphicsSvgItem>
class qfi_ASI : public QGraphicsView
{
Q_OBJECT
public:
qfi_ASI( QWidget *parent = 0 );
virtual ~qfi_ASI();
void reinit();
void update();
void setAirspeed( float airspeed );
protected:
void resizeEvent( QResizeEvent *event );
private:
QGraphicsScene *m_scene;
QGraphicsSvgItem *m_itemFace;
QGraphicsSvgItem *m_itemHand;
QGraphicsSvgItem *m_itemCase;
float m_airspeed;
float m_scaleX;
float m_scaleY;
const int m_originalHeight;
const int m_originalWidth;
QPointF m_originalAsiCtr;
const int m_faceZ;
const int m_handZ;
const int m_caseZ;
void init();
void reset();
void updateView();
};
#endif // QFI_ASI_H
qfi_ASI::setAirspeed
void setAirspeed(float airspeed)
Definition: qfi_ASI.cpp:132
qfi_ASI::update
void update()
Definition: qfi_ASI.cpp:125
qfi_ASI::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_ASI.cpp:142
qfi_ASI::~qfi_ASI
virtual ~qfi_ASI()
Definition: qfi_ASI.cpp:99
qfi_ASI
Definition: qfi_ASI.h:59
qfi_ASI::reinit
void reinit()
Definition: qfi_ASI.cpp:113
qfi_ASI::qfi_ASI
qfi_ASI(QWidget *parent=0)
Definition: qfi_ASI.cpp:64