26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_POLYGONACQUIRE_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_POLYGONACQUIRE_H
30 #include "../../../geometry/Coord2D.h"
31 #include "../../../geometry/Polygon.h"
32 #include "../Config.h"
36 #include <QtGui/QPainterPath>
89 bool mousePressEvent(QMouseEvent* e);
91 bool mouseMoveEvent(QMouseEvent* e);
93 bool mouseReleaseEvent(QMouseEvent* e);
95 bool mouseDoubleClickEvent(QMouseEvent* e);
103 void drawLine(
Canvas& canvas);
105 void drawPolygon(
Canvas& canvas);
111 void onExtentChanged();
130 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_POLYGONACQUIRE_H
te::gm::Coord2D m_lastPos
The last position captured on mouse move event.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
std::vector< te::gm::Coord2D > m_coords
The coord list managed by the measure tool.
This class defines an interface for objects that can receive application events and respond to them...
An utility struct for representing 2D coordinates.
bool m_isFinished
A flag that indicates if the operations was finished.
QPen m_pen
The pen used to draw the path.
QBrush m_brush
The brush used to draw the path.
A canvas built on top of Qt.
A widget to control the display of a set of layers.
This class implements a concrete tool to acquire a polygon geometry.