27 #include "../canvas/MapDisplay.h" 
   31 #include <QMouseEvent> 
   40   m_pen.setColor(QColor(100, 177, 216));
 
   42   m_brush = QColor(100, 177, 216, 80);
 
   57   m_rect = QRect(m_origin, e->pos()).normalized();
 
   59   QPixmap* draft = m_display->getDraftPixmap();
 
   60   draft->fill(Qt::transparent);
 
   62   QPainter painter(draft);
 
   63   painter.setPen(m_pen);
 
   64   painter.setBrush(m_brush);
 
   65   painter.drawRect(m_rect);
 
   74   QPixmap* draft = m_display->getDraftPixmap();
 
   75   draft->fill(Qt::transparent);
 
virtual bool mouseReleaseEvent(QMouseEvent *e)
 
This class defines an interface for objects that can receive application events and respond to them...
 
virtual bool mouseMoveEvent(QMouseEvent *e)
 
virtual bool mousePressEvent(QMouseEvent *e)
 
RubberBand(MapDisplay *display, QObject *parent=0)
It constructs a rubber band associated with the given map display and with the specified cursor...
 
QPen m_pen
The pen used to draw the rubber band shape. 
 
A widget to control the display of a set of layers. 
 
This is a utility class tool that provides a rectangle that can indicate a boundary. 
 
virtual ~RubberBand()
Destructor. 
 
QBrush m_brush
The brush used to draw the rubber band shape.