This class implements a concrete tool to move geometries.
More...
#include <MoveGeometryTool.h>
|
bool | eventFilter (QObject *watched, QEvent *e) |
| Filters events if this object has been installed as an event filter for the watched object. More...
|
|
This class implements a concrete tool to move geometries.
This class implements a concrete tool to rotate geometries.
Definition at line 65 of file MoveGeometryTool.h.
◆ MoveGeometryTool()
It constructs a move geometry tool associated with the given map display.
- Parameters
-
display | The map display associated with the tool. |
parent | The tool's parent. |
- Note
- The tool will NOT take the ownership of the given pointers.
◆ ~MoveGeometryTool()
te::edit::MoveGeometryTool::~MoveGeometryTool |
( |
| ) |
|
◆ buildEnvelope()
te::gm::Envelope te::edit::MoveGeometryTool::buildEnvelope |
( |
const QPointF & |
pos | ) |
|
|
private |
◆ disableMouseEvent()
void te::edit::GeometriesUpdateTool::disableMouseEvent |
( |
QMouseEvent::Type |
mEvent | ) |
|
|
inherited |
◆ draw()
void te::edit::MoveGeometryTool::draw |
( |
| ) |
|
|
private |
◆ eventFilter()
bool te::edit::GeometriesUpdateTool::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
e |
|
) |
| |
|
privatevirtualinherited |
Filters events if this object has been installed as an event filter for the watched object.
- Parameters
-
watched | The watched object. |
event | The last event sent to watched object. |
- Note
- In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
-
Here, the default implementation looks for QMouseEvents and call the pure virutal methods defined on AbstractTool class, e.g. mousePressEvent().
Reimplemented from te::qt::widgets::AbstractTool.
◆ geometriesEdited
void te::edit::GeometriesUpdateTool::geometriesEdited |
( |
| ) |
|
|
signalinherited |
◆ geometriesStarted
void te::edit::GeometriesUpdateTool::geometriesStarted |
( |
| ) |
|
|
signalinherited |
◆ getLayerId()
std::string te::edit::GeometriesUpdateTool::getLayerId |
( |
| ) |
|
|
inherited |
◆ init()
virtual void te::qt::widgets::AbstractTool::init |
( |
| ) |
|
|
virtualinherited |
◆ isInUse()
bool te::edit::GeometriesUpdateTool::isInUse |
( |
| ) |
const |
|
inherited |
◆ keyPressEvent()
bool te::edit::MoveGeometryTool::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive key press events for the watched object.
- Parameters
-
- Returns
- If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Reimplemented from te::qt::widgets::AbstractTool.
◆ mouseDoubleClickEvent()
virtual bool te::qt::widgets::AbstractTool::mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtualinherited |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object.
- Parameters
-
- Returns
- If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
- Note
- The AbstractTool will also receive mouse press and mouse release events in addition to the double click event. It is up to the developer to ensure that the application interprets these events correctly.
Reimplemented in te::edit::AggregateAreaTool, te::edit::CreateLineTool, te::edit::CreatePointTool, te::edit::CreatePolygonTool, te::edit::SplitPolygonTool, te::edit::SubtractAreaTool, te::edit::VertexTool, te::mnt::ProfileTools, te::qt::widgets::Measure, and te::qt::widgets::PolygonAcquire.
◆ mouseMoveEvent()
bool te::edit::MoveGeometryTool::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object.
- Parameters
-
- Returns
- If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Reimplemented from te::qt::widgets::AbstractTool.
◆ mousePressEvent()
bool te::edit::MoveGeometryTool::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.
- Parameters
-
- Returns
- If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Reimplemented from te::qt::widgets::AbstractTool.
◆ mouseReleaseEvent()
bool te::edit::MoveGeometryTool::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object.
- Parameters
-
- Returns
- If you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Reimplemented from te::qt::widgets::AbstractTool.
◆ pickFeature()
void te::edit::MoveGeometryTool::pickFeature |
( |
const QPointF & |
pos | ) |
|
|
private |
◆ reset()
void te::edit::MoveGeometryTool::reset |
( |
| ) |
|
|
private |
◆ resetVisualizationTool()
void te::edit::MoveGeometryTool::resetVisualizationTool |
( |
| ) |
|
|
virtual |
◆ setCursor()
virtual void te::qt::widgets::AbstractTool::setCursor |
( |
const QCursor & |
cursor | ) |
|
|
virtualinherited |
It sets the tool cursor.
- Parameters
-
cursor | The cursor that will be used during the tool operation. |
◆ setInUse()
void te::edit::GeometriesUpdateTool::setInUse |
( |
const bool & |
status | ) |
|
|
inherited |
◆ setLayer()
◆ storeFeature()
void te::edit::MoveGeometryTool::storeFeature |
( |
| ) |
|
|
private |
◆ storeUndoCommand()
void te::edit::MoveGeometryTool::storeUndoCommand |
( |
| ) |
|
|
private |
◆ toolDeleted
void te::edit::GeometriesUpdateTool::toolDeleted |
( |
| ) |
|
|
signalinherited |
◆ updateCursor()
void te::edit::MoveGeometryTool::updateCursor |
( |
| ) |
|
|
private |
◆ m_curCursor
QCursor te::qt::widgets::AbstractTool::m_curCursor |
|
protectedinherited |
◆ m_cursor
QCursor te::qt::widgets::AbstractTool::m_cursor |
|
protectedinherited |
◆ m_delta
QPointF te::edit::MoveGeometryTool::m_delta |
|
protected |
Difference between pressed point and destination point on mouse move.
Definition at line 128 of file MoveGeometryTool.h.
◆ m_display
MapDisplay* te::qt::widgets::AbstractTool::m_display |
|
protectedinherited |
The map display associated with the tool.
Definition at line 173 of file AbstractTool.h.
◆ m_drawVertex
bool te::edit::MoveGeometryTool::m_drawVertex |
|
protected |
◆ m_feature
Feature* te::edit::GeometriesUpdateTool::m_feature |
|
protectedinherited |
◆ m_isInUse
bool te::edit::GeometriesUpdateTool::m_isInUse |
|
protectedinherited |
◆ m_layer
◆ m_mEvent
QMouseEvent::Type te::edit::GeometriesUpdateTool::m_mEvent |
|
protectedinherited |
◆ m_moveStarted
bool te::edit::MoveGeometryTool::m_moveStarted |
|
protected |
◆ m_origin
QPointF te::edit::MoveGeometryTool::m_origin |
|
protected |
◆ m_stack
◆ m_vecFeatures
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/edit/qt/tools/MoveGeometryTool.h