]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/hokuyoscan.h
robofsm: Strategy
[eurobot/public.git] / src / robomon / hokuyoscan.h
1 #ifndef HOKUYOSCAN_H
2 #define HOKUYOSCAN_H
3
4 #include <robottype.h>
5 #include <shape_detect.h>
6 #include <QRectF>
7 #include <QPainter>
8 #include <QStyleOptionGraphicsItem>
9 #include <QWidget>
10 #include <QGraphicsItem>
11
12 class HokuyoScan : public QGraphicsItem
13 {
14     float x, y, phi;
15 public:
16     bool showShapeDetect;
17     struct hokuyo_scan_type data;
18     HokuyoScan();
19     QRectF boundingRect() const;
20     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
21     void setPosition(double x, double y, double phi);
22     void newScan(struct hokuyo_scan_type *scan);
23
24     void paintShapeDetect(QPainter * painter);
25
26     ~HokuyoScan();
27 };
28
29 #endif // HOKUYOSCAN_H