27 #include "../../../geometry/Envelope.h" 28 #include "../canvas/MapDisplay.h" 32 #include <QMouseEvent> 39 m_actionCursor(actionCursor)
48 if(e->button() != Qt::LeftButton)
79 QPainter painter(draft);
80 painter.drawPixmap(0, 0, *result);
82 painter.setOpacity(0.3);
83 painter.drawPixmap(
m_delta, *result);
98 if(e->button() != Qt::LeftButton ||
m_delta.isNull())
103 draft->fill(Qt::transparent);
118 QPointF newCenter(oldCenter.x() -
dx, oldCenter.y() - dy);
120 te::gm::Envelope newExtent(newCenter.x() - (width / 2.), newCenter.y() - (height / 2.), newCenter.x() + (width / 2.), newCenter.y() + (height / 2.));
static te::dt::Date dx(2010, 12, 31)
double getWidth() const
It returns the envelope width.
double getY() const
It returns the y-coordinate.
Coord2D getCenter() const
It returns the rectangle's center coordinate.
An Envelope defines a 2D rectangular region.
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
This class implements a concrete tool to geographic pan operation.
double getX() const
It returns the x-coordinate.
double getHeight() const
It returns the envelope height.