QFlightInstruments

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Enumerations Enumerator Macros
qfi_ASI.h
Go to the documentation of this file.
1 /***************************************************************************/
48 #ifndef QFI_ASI_H
49 #define QFI_ASI_H
50
52
53 #include <QGraphicsView>
54 #include <QGraphicsSvgItem>
55
57
59 class qfi_ASI : public QGraphicsView
60 {
61 Q_OBJECT
62
63 public:
64
66 qfi_ASI( QWidget *parent = 0 );
67
69 virtual ~qfi_ASI();
70
72 void reinit();
73
75 void update();
76
78 void setAirspeed( float airspeed );
79
80 protected:
81
82 void resizeEvent( QResizeEvent *event );
83
84 private:
85
86 QGraphicsScene *m_scene;
87
88 QGraphicsSvgItem *m_itemFace;
89 QGraphicsSvgItem *m_itemHand;
90 QGraphicsSvgItem *m_itemCase;
91
92 float m_airspeed;
93
94 float m_scaleX;
95 float m_scaleY;
96
97 const int m_originalHeight;
98 const int m_originalWidth;
99
100 QPointF m_originalAsiCtr;
101
102 const int m_faceZ;
103 const int m_handZ;
104 const int m_caseZ;
105
106 void init();
107
108 void reset();
109
110 void updateView();
111 };
112
114
115 #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