qmappainter.cpp
Go to the documentation of this file.
2 #include "moc_qmappainter.cpp"
3 
4 QMapPainter::QMapPainter( QWidget * parent, const char * name, WFlags f):
5  QWidget(parent, name, f|WRepaintNoErase|WResizeNoErase){
6  m_pixmap=new QPixmap(size());
7  m_pixmap->fill(Qt::white);
8 }
9 
10 void QMapPainter::resizeEvent(QResizeEvent * sizeev){
11  m_pixmap->resize(sizeev->size());
12 }
13 
15  delete m_pixmap;
16 }
17 
18 
19 void QMapPainter::timerEvent(QTimerEvent * te) {
20  if (te->timerId()==timer)
21  update();
22 }
23 
24 void QMapPainter::start(int period){
25  timer=startTimer(period);
26 }
27 
28 
29 void QMapPainter::paintEvent ( QPaintEvent * ){
30  bitBlt(this,0,0,m_pixmap,0,0,m_pixmap->width(),m_pixmap->height(),CopyROP);
31 }
32 
QMapPainter::start
void start(int period)
Definition: qmappainter.cpp:24
qmappainter.h
QMapPainter::timer
int timer
Definition: qmappainter.h:24
QMapPainter::m_pixmap
QPixmap * m_pixmap
Definition: qmappainter.h:26
QMapPainter::QMapPainter
QMapPainter(QWidget *parent=0, const char *name=0, WFlags f=0)
Definition: qmappainter.cpp:4
QMapPainter::resizeEvent
virtual void resizeEvent(QResizeEvent *)
Definition: qmappainter.cpp:10
QMapPainter::~QMapPainter
virtual ~QMapPainter()
Definition: qmappainter.cpp:14
QMapPainter::timerEvent
virtual void timerEvent(QTimerEvent *te)
Definition: qmappainter.cpp:19
QMapPainter::paintEvent
virtual void paintEvent(QPaintEvent *paintevent)
Definition: qmappainter.cpp:29


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51