26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_MEASURE_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_MEASURE_H
30 #include "../../../geometry/Coord2D.h"
31 #include "../Config.h"
35 #include <QtGui/QFont>
36 #include <QtGui/QPainterPath>
109 bool mousePressEvent(QMouseEvent* e);
111 bool mouseMoveEvent(QMouseEvent* e);
113 bool mouseReleaseEvent(QMouseEvent* e);
115 bool mouseDoubleClickEvent(QMouseEvent* e);
123 void drawLine(
Canvas& canvas);
125 void drawPolygon(
Canvas& canvas);
137 void onExtentChanged();
154 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_MEASURE_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
MeasureType
Defines the measure type measured by this tool.
te::gm::Coord2D m_lastPos
The last position captured on mouse move event.
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...
std::string m_unit
The unit symbol for the measure.
An utility struct for representing 2D coordinates.
LineString is a curve with linear interpolation between points.
MeasureType m_measureType
The measure type.
A canvas built on top of Qt.
A point with x and y coordinate values.
A widget to control the display of a set of layers.
MeasureType
Defines the possible types of unit of measurements.
This class implements a concrete tool to measure operation (distance, area, and angle).
QBrush m_brush
The brush used to draw the path.
QPen m_pen
The pen used to draw the path.
bool m_isFinished
A flag that indicates if the operations was finished.