#include <maptoolmeshselectedge.h>
|
| | MapToolMeshSelectEdge (MapCanvas *canvas, SelectionManager *selection, QObject *parent=nullptr) |
| |
| bool | boundaryOnly () const |
| |
| void | setBoundaryOnly (bool on) |
| |
| void | activate () override |
| | Called by the canvas when this tool becomes the active tool.
|
| |
| void | deactivate () override |
| | Called by the canvas when another tool replaces this one.
|
| |
| void | mousePressEvent (QMouseEvent *event) override |
| |
| void | mouseMoveEvent (QMouseEvent *event) override |
| |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| |
| void | keyPressEvent (QKeyEvent *event) override |
| |
| void | paint (QPainter *painter, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Called by the canvas in drawForeground() so the tool can draw transient overlay graphics (rubber-band, measure segments, etc.).
|
| |
| | OpenSWMMVisMapTool (const QString &toolName, MapCanvas *canvas, QObject *parent=nullptr) |
| |
| virtual | ~OpenSWMMVisMapTool ()=default |
| |
| QString | toolName () const |
| | Returns the human-readable name of this tool.
|
| |
| virtual QCursor | cursor () const |
| | Returns the mouse cursor to display while this tool is active.
|
| |
| 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 | mouseDoubleClickEvent (QMouseEvent *event) |
| |
| virtual void | wheelEvent (QWheelEvent *event) |
| |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| |
| 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.
|
| |
◆ MapToolMeshSelectEdge()
| MapToolMeshSelectEdge::MapToolMeshSelectEdge |
( |
MapCanvas * |
canvas, |
|
|
SelectionManager * |
selection, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ activate()
| void MapToolMeshSelectEdge::activate |
( |
| ) |
|
|
overridevirtual |
Called by the canvas when this tool becomes the active tool.
Reimplemented from OpenSWMMVisMapTool.
◆ boundaryOnly()
| bool MapToolMeshSelectEdge::boundaryOnly |
( |
| ) |
const |
|
inline |
◆ deactivate()
| void MapToolMeshSelectEdge::deactivate |
( |
| ) |
|
|
overridevirtual |
Called by the canvas when another tool replaces this one.
Reimplemented from OpenSWMMVisMapTool.
◆ keyPressEvent()
| void MapToolMeshSelectEdge::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overridevirtual |
◆ mouseMoveEvent()
| void MapToolMeshSelectEdge::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overridevirtual |
◆ mousePressEvent()
| void MapToolMeshSelectEdge::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overridevirtual |
◆ mouseReleaseEvent()
| void MapToolMeshSelectEdge::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overridevirtual |
◆ paint()
Called by the canvas in drawForeground() so the tool can draw transient overlay graphics (rubber-band, measure segments, etc.).
Override this to paint tool overlays directly via QPainter in view coordinates.
Reimplemented from OpenSWMMVisMapTool.
◆ plotEdgeFluxRequested
Emitted when the user right-clicks an edge and chooses "Plot edge flow" or "Plot edge flux". The host opens the comparison plot with that one series for the edge; attr is Mesh2DEdgeFlow (volumetric Q, m³/s) or Mesh2DEdgeFlux (unit-width q, m²/s).
◆ setBoundaryOnly()
| void MapToolMeshSelectEdge::setBoundaryOnly |
( |
bool |
on | ) |
|
◆ statusMessageChanged
| void MapToolMeshSelectEdge::statusMessageChanged |
( |
const QString & |
message | ) |
|
|
signal |
Path-picking feedback for the host's status bar (anchor set, chain added, "requires boundary edges", no path).
The documentation for this class was generated from the following files: