QFlightInstruments

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Enumerations Enumerator Macros
qfi_ALT.h
Go to the documentation of this file.
1 /***************************************************************************/
48 #ifndef QFI_ALT_H
49 #define QFI_ALT_H
50
52
53 #include <QGraphicsView>
54 #include <QGraphicsSvgItem>
55
57
59 class qfi_ALT : public QGraphicsView
60 {
61 Q_OBJECT
62
63 public:
64
66 qfi_ALT( QWidget *parent = 0 );
67
69 virtual ~qfi_ALT();
70
72 void reinit();
73
75 void update();
76
78 void setAltitude( float altitude );
79
81 void setPressure( float aressure );
82
83 protected:
84
85 void resizeEvent( QResizeEvent *event );
86
87 private:
88
89 QGraphicsScene *m_scene;
90
91 QGraphicsSvgItem *m_itemFace_1;
92 QGraphicsSvgItem *m_itemFace_2;
93 QGraphicsSvgItem *m_itemFace_3;
94 QGraphicsSvgItem *m_itemHand_1;
95 QGraphicsSvgItem *m_itemHand_2;
96 QGraphicsSvgItem *m_itemCase;
97
98 float m_altitude;
99 float m_pressure;
100
101 float m_scaleX;
102 float m_scaleY;
103
104 const int m_originalHeight;
105 const int m_originalWidth;
106
107 QPointF m_originalAltCtr;
108
109 const int m_face1Z;
110 const int m_face2Z;
111 const int m_face3Z;
112 const int m_hand1Z;
113 const int m_hand2Z;
114 const int m_caseZ;
115
116 void init();
117
118 void reset();
119
120 void updateView();
121 };
122
124
125 #endif // QFI_ALT_H
qfi_ALT::reinit
void reinit()
Definition: qfi_ALT.cpp:120
qfi_ALT
Definition: qfi_ALT.h:59
qfi_ALT::update
void update()
Definition: qfi_ALT.cpp:132
qfi_ALT::setAltitude
void setAltitude(float altitude)
Definition: qfi_ALT.cpp:139
qfi_ALT::setPressure
void setPressure(float aressure)
Definition: qfi_ALT.cpp:146
qfi_ALT::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_ALT.cpp:156
qfi_ALT::~qfi_ALT
virtual ~qfi_ALT()
Definition: qfi_ALT.cpp:106
qfi_ALT::qfi_ALT
qfi_ALT(QWidget *parent=0)
Definition: qfi_ALT.cpp:64