00001 #ifndef HOKUYO_H 00002 #define HOKUYO_H 00003 00004 00005 #include <QWidget> 00006 #include <QtGui/QGraphicsView> 00007 #include "Hokuyo_Points.h" 00008 #include <QMessageBox> 00009 00010 class Hokuyo : public QWidget 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 Hokuyo(QWidget *parent = 0); 00016 ~Hokuyo(); 00017 Hokuyo_Points* hokuyo_points; 00018 QMessageBox msgBox_hokuyo; 00019 bool showlines; 00020 double IR01_update; 00021 double IR02_update; 00022 bool showIR; 00023 bool showLRF; 00024 00025 public slots: 00026 void hokuyo_update(Hokuyo_Points* hokuyo_points_); 00027 void IR_update(double IR01_new, double IR02_new); 00028 00029 protected: 00030 virtual void paintEvent(QPaintEvent *event); 00031 00032 private: 00033 int flag; 00034 00035 }; 00036 00037 #endif // HOKUYO_H