]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/MclPainter.h
Update Makefile.rules to support .cpp extension of C++ sources
[eurobot/public.git] / src / robomon / MclPainter.h
1 /*
2  * MclPainter.cpp                               08/01/26
3  *
4  * Used to draw MCL particles.
5  *
6  * Copyright: (c) 2008 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11 #ifndef MCL_PAINTER_H
12 #define MCL_PAINTER_H
13
14 #include <QBrush>
15 #include "Painter.h"
16 #include <mcl_laser.h>
17
18 class QPainter;
19 class QPaintEvent;
20
21 class MclPainter : public Painter
22 {
23 public:
24         MclPainter(struct mcl_model *mcl, int *displayCount);
25         ~MclPainter();
26         struct mcl_robot_pos estimated;
27
28 public:
29         void paint(QPainter *painter, QPaintEvent *event);
30         QSize size();
31         void setSize(int width, int height);
32
33 private:
34         QBrush background;
35         int width;
36         int height;
37         struct mcl_model *mcl;
38         int *displayCount;
39
40 };
41
42 #endif