00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef HUDView_H
00020 #define HUDView_H
00021
00022 #include <gtkmm.h>
00023
00024 namespace uvsim
00025 {
00052 class HUDView : public Gtk::DrawingArea
00053 {
00054 public:
00060 HUDView(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& glade);
00067 virtual bool on_expose_event(GdkEventExpose* ev);
00080 void drawHUD();
00104 void drawTopPart();
00114 void drawBottomPart();
00119 void drawHeading();
00123 Cairo::RefPtr<Cairo::Context> cr;
00127 double rolldegree;
00131 double pitchangle;
00135 double yaw;
00139 int heading;
00140 private:
00145 const Glib::RefPtr<Gtk::Builder> & m_glade;
00146 };
00147 }
00148 #endif
00149
00150