27 #include "../../../geometry/Envelope.h" 
   28 #include "../canvas/MapDisplay.h" 
   32 #include <QtGui/QMouseEvent> 
   47   if(e->button() != Qt::LeftButton)
 
   66   m_zoomStarted = 
false;
 
   68   if(e->button() != Qt::LeftButton)
 
   75     QRect displayRect = m_display->rect();
 
   76     m_rect = QRectF(displayRect.topLeft() * 0.5, displayRect.bottomRight() * 0.5);
 
   77     m_rect.moveCenter(m_origin);
 
   81   QPointF ll(m_rect.left(), m_rect.bottom());
 
   82   QPointF ur(m_rect.right(), m_rect.top());
 
   83   ll = m_display->transform(ll);
 
   84   ur = m_display->transform(ur);
 
   88   m_display->setExtent(envelope);
 
virtual bool mouseReleaseEvent(QMouseEvent *e)
 
ZoomArea(MapDisplay *display, const QCursor &cursor, QObject *parent=0)
It constructs a zoom area tool associated with the given map display and with the specified cursor...
 
bool mouseMoveEvent(QMouseEvent *e)
 
bool mousePressEvent(QMouseEvent *e)
 
bool mouseReleaseEvent(QMouseEvent *e)
 
virtual void setCursor(const QCursor &cursor)
 
virtual bool mouseMoveEvent(QMouseEvent *e)
 
virtual bool mousePressEvent(QMouseEvent *e)
 
A widget to control the display of a set of layers. 
 
This class provides a rectangle that can indicate a boundary. 
 
This class implements a concrete tool to geographic zoom in operation using a boundary rectangle...
 
An Envelope defines a 2D rectangular region.