rock_widget_collection  0.1
artificialhorizon.h
Go to the documentation of this file.
1 #ifndef ARTIFICIALHORIZON_H
2 #define ARTIFICIALHORIZON_H
3 
4 
5 #include <QtGui/QWidget>
6 #include <QtGui/QPixmap>
7 
8 class ArtificialHorizon:public QWidget
9 {
10  Q_OBJECT
11 
12 public:
13  ArtificialHorizon(QWidget *parent=NULL);
15 
16  void paintEvent(QPaintEvent *);
17  void resizeEvent ( QResizeEvent * event );
18 
19 public slots:
20  void setDataDir(QString const& data_dir);
22  void setRollAngle(double myvalue);
23  void setPitchAngle(double myval);
24 
25 private:
26  double rollangle;
27  double pitchangle;
28 
29  QPixmap background;
30  QImage stationary;
31  QImage rotate;
32  QImage dial;
33  QPixmap background_o;
34  QImage stationary_o;
35  QImage rotate_o;
36  QImage dial_o;
37 };
38 #endif // ARTIFICIALHORIZON_H
void setRollAngle(double myvalue)
ArtificialHorizon(QWidget *parent=NULL)
void paintEvent(QPaintEvent *)
void setPitchAngle(double myval)
ArtificialHorizon * newInstance()
void setDataDir(QString const &data_dir)
void resizeEvent(QResizeEvent *event)