rock_widget_collection  0.1
orientation.h
Go to the documentation of this file.
1 #ifndef _ORIENTATIONVIEW_H_
2 #define _ORIENTATIONVIEW_H_
3 
4 #include <MultiWidget.h>
5 //#include <QWidget>
6 
7 class QHBoxLayout;
8 class Compass;
10 
12 {
13  Q_OBJECT
14  Q_CLASSINFO("Author", "Matthias Goldhoorn")
15 
16 public:
17  OrientationView(QWidget *parent=NULL);
18 // virtual ~Orientation(); //Attention if you comment in this the widgets are not longer visible in designer WTF?
19 
20 public slots:
21 
23  void setHeading(double value);
24  void setPitch(double value);
25  void setRoll(double value);
26  void setHeadingAngle(double value){setHeading(value);}
27  void setPitchAngle(double value){setPitch(value);}
28  void setRollAngle(double value){setRoll(value);}
29  void update(){}; //Nothig needs to be done but needs to be implemnted for ruby bindings
30 protected:
31  QHBoxLayout *layout;
34 };
35 
36 #endif //Orientation
void setPitch(double value)
Definition: orientation.cc:30
Compass * compass
Definition: orientation.h:32
QHBoxLayout * layout
Definition: orientation.h:29
void setHeadingAngle(double value)
Definition: orientation.h:26
void setRoll(double value)
Definition: orientation.cc:35
void setPitchAngle(double value)
Definition: orientation.h:27
ArtificialHorizon * horizon
Definition: orientation.h:33
OrientationView(QWidget *parent=NULL)
Definition: orientation.cc:8
void setHeading(double value)
Definition: orientation.cc:25
OrientationView * newInstance()
Definition: orientation.cc:20
void setRollAngle(double value)
Definition: orientation.h:28