qmappainter.cpp
Go to the documentation of this file.
00001 #include "qmappainter.h"
00002 #include "moc_qmappainter.cpp"
00003 
00004 QMapPainter::QMapPainter( QWidget * parent, const char * name, WFlags f):
00005         QWidget(parent, name, f|WRepaintNoErase|WResizeNoErase){
00006         m_pixmap=new QPixmap(size());
00007         m_pixmap->fill(Qt::white);
00008 }
00009 
00010 void QMapPainter::resizeEvent(QResizeEvent * sizeev){
00011         m_pixmap->resize(sizeev->size());
00012 }
00013 
00014 QMapPainter::~QMapPainter(){
00015         delete m_pixmap;
00016 }
00017 
00018 
00019 void QMapPainter::timerEvent(QTimerEvent * te) {
00020         if (te->timerId()==timer) 
00021                 update();
00022 }
00023 
00024 void QMapPainter::start(int period){
00025         timer=startTimer(period);
00026 }
00027 
00028 
00029 void QMapPainter::paintEvent ( QPaintEvent * ){
00030         bitBlt(this,0,0,m_pixmap,0,0,m_pixmap->width(),m_pixmap->height(),CopyROP);
00031 }
00032 


openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Fri Aug 28 2015 11:56:21