27 #include "../../../geometry/Coord2D.h" 28 #include "../../../geometry/Envelope.h" 29 #include "../canvas/MapDisplay.h" 33 #include <QMouseEvent> 38 :
AbstractTool(display, parent), m_zoomFactor( zoomFactor )
46 if(e->button() == Qt::LeftButton)
55 #if QT_VERSION >= 0x050000 71 else if( e->button() == Qt::RightButton)
80 #if QT_VERSION >= 0x050000
double getWidth() const
It returns the envelope width.
An utility struct for representing 2D coordinates.
Coord2D getCenter() const
It returns the rectangle's center coordinate.
An Envelope defines a 2D rectangular region.
This class implements a concrete tool to geographic zoom operation using the left and right mouse cli...
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
double getHeight() const
It returns the envelope height.
bool isValid() const
It tells if the rectangle is valid or not.