QFlightInstruments

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Enumerations Enumerator Macros
qfi_TC.h
Go to the documentation of this file.
1 /***************************************************************************/
48 #ifndef QFI_TC_H
49 #define QFI_TC_H
50
52
53 #include <QGraphicsView>
54 #include <QGraphicsSvgItem>
55
57
59 class qfi_TC : public QGraphicsView
60 {
61 Q_OBJECT
62
63 public:
64
66 qfi_TC( QWidget *parent = 0 );
67
69 virtual ~qfi_TC();
70
72 void reinit();
73
75 void update();
76
78 void setTurnRate( float turnRate );
79
81 void setSlipSkid( float slipSkid );
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_itemBall;
93 QGraphicsSvgItem *m_itemFace_1;
94 QGraphicsSvgItem *m_itemFace_2;
95 QGraphicsSvgItem *m_itemMark;
96 QGraphicsSvgItem *m_itemCase;
97
98 float m_turnRate;
99 float m_slipSkid;
100
101 float m_scaleX;
102 float m_scaleY;
103
104 const int m_originalHeight;
105 const int m_originalWidth;
106
107 QPointF m_originalMarkCtr;
108 QPointF m_originalBallCtr;
109
110 const int m_backZ;
111 const int m_ballZ;
112 const int m_face1Z;
113 const int m_face2Z;
114 const int m_markZ;
115 const int m_caseZ;
116
117 void init();
118
119 void reset();
120
121 void updateView();
122 };
123
125
126 #endif // QFI_TC_H
qfi_TC::update
void update()
Definition: qfi_TC.cpp:133
qfi_TC::setSlipSkid
void setSlipSkid(float slipSkid)
Definition: qfi_TC.cpp:150
qfi_TC::qfi_TC
qfi_TC(QWidget *parent=0)
Definition: qfi_TC.cpp:64
qfi_TC::reinit
void reinit()
Definition: qfi_TC.cpp:121
qfi_TC::setTurnRate
void setTurnRate(float turnRate)
Definition: qfi_TC.cpp:140
qfi_TC::~qfi_TC
virtual ~qfi_TC()
Definition: qfi_TC.cpp:107
qfi_TC
Definition: qfi_TC.h:59
qfi_TC::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_TC.cpp:160