]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/AnglesHistogramPainter.h
Merge branch 'maint-demo'
[eurobot/public.git] / src / robomon / AnglesHistogramPainter.h
1 /*
2  * AnglesHistogramPainter.h                             08/01/28
3  *
4  * Angles histogram painter.
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 ANGLES_HISTOGRAM_PAINTER_H
12 #define ANGLES_HISTOGRAM_PAINTER_H
13
14 #include <QBrush>
15 #include "Painter.h"
16 #include <mcl.h>
17
18 class QPainter;
19 class QPaintEvent;
20
21 class AnglesHistogramPainter : public Painter
22 {
23 public:
24         AnglesHistogramPainter(struct angles_freq *angles, int count);
25         ~AnglesHistogramPainter();
26
27 public:
28         void paint(QPainter *painter, QPaintEvent *event);
29         QSize size();
30         void setSize(int width, int height);
31         void setCount(int count);
32
33 private:
34         QBrush background;
35         int width;
36         int height;
37         struct angles_freq *angles;
38         int count;
39
40 };
41
42 #endif