qgraphpainter.h
Go to the documentation of this file.
1 /*****************************************************************
2  *
3  * This file is part of the GMAPPING project
4  *
5  * GMAPPING Copyright (c) 2004 Giorgio Grisetti,
6  * Cyrill Stachniss, and Wolfram Burgard
7  *
8  * This software is licensed under the "Creative Commons
9  * License (Attribution-NonCommercial-ShareAlike 2.0)"
10  * and is copyrighted by Giorgio Grisetti, Cyrill Stachniss,
11  * and Wolfram Burgard.
12  *
13  * Further information on this license can be found at:
14  * http://creativecommons.org/licenses/by-nc-sa/2.0/
15  *
16  * GMAPPING is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied
18  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19  * PURPOSE.
20  *
21  *****************************************************************/
22 
23 
24 #ifndef QGRAPHPAINTER_H
25 #define QGRAPHPAINTER_H
26 
27 #include <qpainter.h>
28 #include <qpixmap.h>
29 #include <qstring.h>
30 #include <qwidget.h>
31 #include <qmatrix.h>
32 #include <deque>
33 #include <utils/gvalues.h>
34 
35 typedef std::deque<double> DoubleDeque;
36 
37 class QGraphPainter : public QWidget{
38  Q_OBJECT
39  public:
40  QGraphPainter( QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0);
41  virtual ~QGraphPainter();
42  public slots:
43  void clear();
44  void valueAdded(double);
45  void valueAdded(double, double, double);
46  void setYReference(double y);
47  void disableYReference();
48  void setRange(double min, double max);
49  void start(int period);
50  void setTitle(const char* title);
51  void setAutoscale(bool a);
52  bool getAutoscale() const;
53  protected:
54  virtual void timerEvent(QTimerEvent * te);
55  virtual void resizeEvent(QResizeEvent *);
56  double min, max, reference;
58  bool autoscale;
60  int timer;
61  virtual void paintEvent ( QPaintEvent *paintevent );
62  QPixmap * m_pixmap;
63  QString title;
64 };
65 
66 #endif
67 
void setRange(double min, double max)
virtual void timerEvent(QTimerEvent *te)
virtual ~QGraphPainter()
void disableYReference()
double reference
Definition: qgraphpainter.h:56
void setYReference(double y)
bool m_useYReference
Definition: qgraphpainter.h:59
DoubleDeque values
Definition: qgraphpainter.h:57
virtual void resizeEvent(QResizeEvent *)
QPixmap * m_pixmap
Definition: qgraphpainter.h:62
void valueAdded(double)
void setAutoscale(bool a)
void setTitle(const char *title)
QGraphPainter(QWidget *parent=0, const char *name=0, Qt::WindowFlags f=0)
bool getAutoscale() const
virtual void paintEvent(QPaintEvent *paintevent)
std::deque< double > DoubleDeque
Definition: qgraphpainter.h:35
void start(int period)


openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Mon Jun 10 2019 14:04:22