#include <ProfileTools.h>
Public Types | |
enum | StageType { FEATURE_SELECTION , VERTEX_SEARCH , VERTEX_FOUND , VERTEX_MOVING , VERTEX_READY_TO_ADD } |
Defines the operation stage to this tool. More... | |
Signals | |
void | geometriesEdited () |
void | geometriesStarted () |
void | toolDeleted () |
Public Member Functions | |
void | disableMouseEvent (QMouseEvent::Type mEvent) |
std::string | getLayerId () |
std::vector< te::gm::LineString * > | getLines () |
EditType | getType () |
bool | isInUse () const |
bool | mouseDoubleClickEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object. More... | |
bool | mouseMoveEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object. More... | |
bool | mousePressEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object. More... | |
bool | mouseReleaseEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object. More... | |
ProfileTools (te::qt::widgets::MapDisplay *display, const te::map::AbstractLayerPtr &layer, QObject *parent=0) | |
void | setInUse (const bool &status) |
void | setLayer (te::map::AbstractLayer *layer) |
void | setLines (std::vector< te::gm::LineString * > &l) |
void | setType (EditType t) |
void | updateRepository () |
~ProfileTools () | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
virtual void | init () |
Protected Attributes | |
Feature * | m_feature |
bool | m_isInUse |
te::map::AbstractLayer * | m_layer |
QMouseEvent::Type | m_mEvent |
EditType | m_type |
Private Member Functions | |
bool | eventFilter (QObject *watched, QEvent *e) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
AbstractTool Methods | |
Methods related with tool behavior. | |
std::vector< te::gm::LineString * > | m_lines |
VertexIndex | m_currentVertexIndex |
te::sam::rtree::Index< VertexIndex, 8 > | m_rtree |
StageType | m_currentStage |
bool | m_isEdited |
bool | m_fixGeometry |
UndoStackManager & | m_stack |
void | resetVisualizationTool () |
void | reset () |
void | pickFeature (const te::map::AbstractLayerPtr &layer, const QPointF &pos) |
void | draw (te::gm::Point *virtualVertex=0) |
void | storeFeature () |
void | storeUndoCommand () |
void | pickFeature (const te::map::AbstractLayerPtr &layer, const te::gm::Envelope &env) |
te::gm::Envelope | buildEnvelope (const QPointF &pos) |
void | updateRTree () |
void | updateCursor () |
void | setStage (StageType stage) |
void | onExtentChanged () |
void | onCommandFeedback () |
AbstractTool Methods | |
Methods related with tool behavior. | |
MapDisplay * | m_display |
The map display associated with the tool. More... | |
QCursor | m_cursor |
The default tool cursor. More... | |
QCursor | m_curCursor |
The current mapdisplay cursor. More... | |
virtual bool | keyPressEvent (QKeyEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive key press events for the watched object. More... | |
virtual void | setCursor (const QCursor &cursor) |
It sets the tool cursor. More... | |
Definition at line 56 of file ProfileTools.h.
|
inherited |
Defines the operation stage to this tool.
Enumerator | |
---|---|
FEATURE_SELECTION | Selection of feature. |
VERTEX_SEARCH | Search of vertex. |
VERTEX_FOUND | Vertex found. |
VERTEX_MOVING | Vertex movement. |
VERTEX_READY_TO_ADD | Vertex add. |
Definition at line 85 of file VertexTool.h.
te::mnt::ProfileTools::ProfileTools | ( | te::qt::widgets::MapDisplay * | display, |
const te::map::AbstractLayerPtr & | layer, | ||
QObject * | parent = 0 |
||
) |
te::mnt::ProfileTools::~ProfileTools | ( | ) |
|
protectedinherited |
|
inherited |
|
privateinherited |
|
privatevirtualinherited |
Filters events if this object has been installed as an event filter for the watched object.
watched | The watched object. |
event | The last event sent to watched object. |
Reimplemented from te::qt::widgets::AbstractTool.
|
signalinherited |
|
signalinherited |
|
inherited |
|
inline |
Definition at line 71 of file ProfileTools.h.
|
inline |
Definition at line 67 of file ProfileTools.h.
|
virtualinherited |
|
inherited |
|
virtualinherited |
This event handler can be reimplemented in a concrete tool class to receive key press events for the watched object.
e | The key event. |
Reimplemented in te::edit::MoveGeometryTool, te::qt::widgets::CoordTracking, and te::qt::widgets::Measure.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object.
e | The mouse event. |
Reimplemented from te::edit::VertexTool.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object.
e | The mouse event. |
Reimplemented from te::edit::VertexTool.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.
e | The mouse event. |
Reimplemented from te::edit::VertexTool.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object.
e | The mouse event. |
Reimplemented from te::edit::VertexTool.
|
privateslotinherited |
|
privateslotinherited |
|
privateinherited |
|
protectedinherited |
|
privateinherited |
|
virtualinherited |
Reimplemented from te::edit::GeometriesUpdateTool.
|
virtualinherited |
It sets the tool cursor.
cursor | The cursor that will be used during the tool operation. |
|
inherited |
|
inherited |
void te::mnt::ProfileTools::setLines | ( | std::vector< te::gm::LineString * > & | l | ) |
|
protectedinherited |
void te::mnt::ProfileTools::setType | ( | EditType | t | ) |
|
privateinherited |
|
privateinherited |
|
signalinherited |
|
protectedinherited |
void te::mnt::ProfileTools::updateRepository | ( | ) |
|
protectedinherited |
|
protectedinherited |
The current mapdisplay cursor.
Definition at line 175 of file AbstractTool.h.
|
protectedinherited |
Definition at line 154 of file VertexTool.h.
|
protectedinherited |
Definition at line 152 of file VertexTool.h.
|
protectedinherited |
The default tool cursor.
Definition at line 174 of file AbstractTool.h.
|
protectedinherited |
The map display associated with the tool.
Definition at line 173 of file AbstractTool.h.
|
protectedinherited |
Definition at line 100 of file GeometriesUpdateTool.h.
|
protectedinherited |
Definition at line 156 of file VertexTool.h.
|
protectedinherited |
Definition at line 155 of file VertexTool.h.
|
protectedinherited |
Definition at line 97 of file GeometriesUpdateTool.h.
|
protectedinherited |
Definition at line 101 of file GeometriesUpdateTool.h.
|
protectedinherited |
Definition at line 151 of file VertexTool.h.
|
protectedinherited |
Definition at line 98 of file GeometriesUpdateTool.h.
|
protectedinherited |
Definition at line 153 of file VertexTool.h.
|
protectedinherited |
Definition at line 157 of file VertexTool.h.
|
protected |
Definition at line 84 of file ProfileTools.h.