This class implements a concrete tool to select layer features using an extent. More...
#include <Selection.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| Selection (MapDisplay *display, const QCursor &cursor, const std::list< te::map::AbstractLayerPtr > &layers, QObject *parent=0) | |
| It constructs a selection tool associated with the given map display. More... | |
| ~Selection () | |
| Destructor. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| virtual void | init () |
Protected Attributes | |
AbstractTool Methods | |
Methods related with tool behavior. | |
| QPoint | m_origin |
| Origin point on mouse pressed. More... | |
| QRectF | m_rect |
| The boundary rectangle managed by the rubber band. More... | |
| QPen | m_pen |
| The pen used to draw the rubber band shape. More... | |
| QBrush | m_brush |
| The brush used to draw the rubber band shape. More... | |
AbstractTool Methods | |
Methods related with tool behavior. | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| The layer list that will be selected. More... | |
| bool | m_selectionStarted |
| Flag that indicates if selection operation was started. More... | |
| bool | m_keepPreviousSelection |
| Flag that indicates if the tool must keep the previous selection. More... | |
| bool | m_selectionByPointing |
| Flag that indicates if the selection is by pointing. 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 | 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 | mouseReleaseEvent (QMouseEvent *e) |
| This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object. More... | |
| void | setLayers (const std::list< te::map::AbstractLayerPtr > &layers) |
| void | executeSelection (const te::map::AbstractLayerPtr &layer, const te::gm::Envelope &e) |
| void | layerSelectedObjectsChanged (const te::map::AbstractLayerPtr &layer) |
AbstractTool Methods | |
Methods related with tool behavior. | |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
| Filters events if this object has been installed as an event filter for the watched object. More... | |
| virtual 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... | |
| 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... | |
| 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... | |
This class implements a concrete tool to select layer features using an extent.
Definition at line 65 of file Selection.h.
| te::qt::widgets::Selection::Selection | ( | MapDisplay * | display, |
| const QCursor & | cursor, | ||
| const std::list< te::map::AbstractLayerPtr > & | layers, | ||
| QObject * | parent = 0 |
||
| ) |
It constructs a selection tool associated with the given map display.
| display | The map display associated with the tool. |
| cursor | The tool cursor. |
| layer | The layer list that will be selected. |
| parent | The tool's parent. |
| te::qt::widgets::Selection::~Selection | ( | ) |
Destructor.
|
virtualinherited |
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 in te::edit::GeometriesUpdateTool, te::qt::widgets::Measure, te::qt::widgets::ZoomKeyboard, and te::qt::widgets::ZoomWheel.
|
private |
|
virtualinherited |
|
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.
|
signal |
This signal is emitted when the layer selection changed.
|
virtualinherited |
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 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.
|
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::qt::widgets::RubberBand.
|
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::qt::widgets::RubberBand.
|
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::qt::widgets::RubberBand.
|
virtualinherited |
It sets the tool cursor.
| cursor | The cursor that will be used during the tool operation. |
|
slot |
|
protectedinherited |
The brush used to draw the rubber band shape.
Definition at line 95 of file RubberBand.h.
|
protectedinherited |
The current mapdisplay cursor.
Definition at line 175 of file AbstractTool.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.
|
private |
Flag that indicates if the tool must keep the previous selection.
Definition at line 123 of file Selection.h.
|
private |
The layer list that will be selected.
Definition at line 121 of file Selection.h.
|
protectedinherited |
Origin point on mouse pressed.
Definition at line 92 of file RubberBand.h.
|
protectedinherited |
The pen used to draw the rubber band shape.
Definition at line 94 of file RubberBand.h.
|
protectedinherited |
The boundary rectangle managed by the rubber band.
Definition at line 93 of file RubberBand.h.
|
private |
Flag that indicates if the selection is by pointing.
Definition at line 124 of file Selection.h.
|
private |
Flag that indicates if selection operation was started.
Definition at line 122 of file Selection.h.