#include <maptooladdtext.h>
|
| | OpenSWMMVisMapToolAddText (MapCanvas *canvas, OpenSWMMVisAnnotationLayer *layer, QObject *parent=nullptr) |
| |
| QCursor | cursor () const override |
| | Returns the mouse cursor to display while this tool is active.
|
| |
| void | mousePressEvent (QMouseEvent *event) override |
| |
| | OpenSWMMVisMapTool (const QString &toolName, MapCanvas *canvas, QObject *parent=nullptr) |
| |
| virtual | ~OpenSWMMVisMapTool ()=default |
| |
| QString | toolName () const |
| | Returns the human-readable name of this tool.
|
| |
| bool | isActive () const |
| | Returns true when this tool is the active tool on its canvas.
|
| |
| MapCanvas * | canvas () const |
| | Returns the MapCanvas this tool is attached to.
|
| |
| virtual void | activate () |
| | Called by the canvas when this tool becomes the active tool.
|
| |
| virtual void | deactivate () |
| | Called by the canvas when another tool replaces this one.
|
| |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
| |
| virtual void | wheelEvent (QWheelEvent *event) |
| |
| virtual void | keyPressEvent (QKeyEvent *event) |
| |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| |
| virtual void | paint (QPainter *painter, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) |
| | Called by the canvas in drawForeground() so the tool can draw transient overlay graphics (rubber-band, measure segments, etc.).
|
| |
| QGraphicsScene * | scene () const |
| | Returns the scene this tool's canvas is using.
|
| |
| void | toMapCoords (int px, int py, double &mapX, double &mapY) const |
| | Converts a widget pixel position to map coordinates.
|
| |
| void | toPixelCoords (double mapX, double mapY, int &px, int &py) const |
| | Converts map coordinates to widget pixel position.
|
| |
◆ OpenSWMMVisMapToolAddText()
- Parameters
-
| layer | Annotation layer to receive new items. Non-owning; the layer's lifetime must outlive this tool. |
◆ annotationAdded
| void OpenSWMMVisMapToolAddText::annotationAdded |
( |
const QString & |
id | ) |
|
|
signal |
Emitted after a new annotation is placed. The new item's id is in id.
◆ cursor()
| QCursor OpenSWMMVisMapToolAddText::cursor |
( |
| ) |
const |
|
overridevirtual |
Returns the mouse cursor to display while this tool is active.
Reimplemented from OpenSWMMVisMapTool.
◆ mousePressEvent()
| void OpenSWMMVisMapToolAddText::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: