QFlightInstruments

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Enumerations Enumerator Macros
qfi_ADI.h
Go to the documentation of this file.
1 /***************************************************************************/
48 #ifndef QFI_ADI_H
49 #define QFI_ADI_H
50
52
53 #include <QGraphicsView>
54 #include <QGraphicsSvgItem>
55
57
59 class qfi_ADI : public QGraphicsView
60 {
61 Q_OBJECT
62
63 public:
64
66 qfi_ADI( QWidget *parent = 0 );
67
69 virtual ~qfi_ADI();
70
72 void reinit();
73
75 void update();
76
78 void setRoll( float roll );
79
81 void setPitch( float pitch );
82
83 protected:
84
85 void resizeEvent( QResizeEvent *event );
86
87 private:
88
89 QGraphicsScene *m_scene;
90
91 QGraphicsSvgItem *m_itemBack;
92 QGraphicsSvgItem *m_itemFace;
93 QGraphicsSvgItem *m_itemRing;
94 QGraphicsSvgItem *m_itemCase;
95
96 float m_roll;
97 float m_pitch;
98
99 float m_faceDeltaX_new;
100 float m_faceDeltaX_old;
101 float m_faceDeltaY_new;
102 float m_faceDeltaY_old;
103
104 float m_scaleX;
105 float m_scaleY;
106
107 const int m_originalHeight;
108 const int m_originalWidth;
109
110 const float m_originalPixPerDeg;
111
112 QPointF m_originalAdiCtr;
113
114 const int m_backZ;
115 const int m_faceZ;
116 const int m_ringZ;
117 const int m_caseZ;
118
119 void init();
120
121 void reset();
122
123 void updateView();
124 };
125
127
128 #endif // QFI_ADI_H
qfi_ADI::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_ADI.cpp:165
qfi_ADI::setPitch
void setPitch(float pitch)
Definition: qfi_ADI.cpp:155
qfi_ADI::update
void update()
Definition: qfi_ADI.cpp:135
qfi_ADI
Definition: qfi_ADI.h:59
qfi_ADI::~qfi_ADI
virtual ~qfi_ADI()
Definition: qfi_ADI.cpp:109
qfi_ADI::qfi_ADI
qfi_ADI(QWidget *parent=0)
Definition: qfi_ADI.cpp:64
qfi_ADI::setRoll
void setRoll(float roll)
Definition: qfi_ADI.cpp:145
qfi_ADI::reinit
void reinit()
Definition: qfi_ADI.cpp:123