QFlightInstruments

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Enumerations Enumerator Macros
qfi_HSI.h
Go to the documentation of this file.
1 /***************************************************************************/
48 #ifndef QFI_HSI_H
49 #define QFI_HSI_H
50
52
53 #include <QGraphicsView>
54 #include <QGraphicsSvgItem>
55
57
59 class qfi_HSI : public QGraphicsView
60 {
61 Q_OBJECT
62
63 public:
64
66 qfi_HSI( QWidget *parent = 0 );
67
69 virtual ~qfi_HSI();
70
72 void reinit();
73
75 void update();
76
78 void setHeading( float heading );
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_itemCase;
90
91 float m_heading;
92
93 float m_scaleX;
94 float m_scaleY;
95
96 const int m_originalHeight;
97 const int m_originalWidth;
98
99 QPointF m_originalHsiCtr;
100
101 const int m_faceZ;
102 const int m_caseZ;
103
104 void init();
105
106 void reset();
107
108 void updateView();
109 };
110
112
113 #endif // QFI_HSI_H
qfi_HSI::reinit
void reinit()
Definition: qfi_HSI.cpp:111
qfi_HSI::qfi_HSI
qfi_HSI(QWidget *parent=0)
Definition: qfi_HSI.cpp:64
qfi_HSI::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: qfi_HSI.cpp:137
qfi_HSI
Definition: qfi_HSI.h:59
qfi_HSI::update
void update()
Definition: qfi_HSI.cpp:123
qfi_HSI::setHeading
void setHeading(float heading)
Definition: qfi_HSI.cpp:130
qfi_HSI::~qfi_HSI
virtual ~qfi_HSI()
Definition: qfi_HSI.cpp:97