#include <selectionbeaconoverlay.h>
|
| | SelectionBeaconOverlay (QObject *parent=nullptr) |
| |
| void | setAnchors (const QVector< QPointF > &sceneAnchors) |
| |
| bool | isEmpty () const |
| |
| void | setColor (const QColor &c) |
| |
| void | paint (QPainter &p, const std::function< QPointF(const QPointF &)> &toPixel, const QSize &viewport) |
| | Draws the beacon(s) in DEVICE pixels.
|
| |
◆ SelectionBeaconOverlay()
| SelectionBeaconOverlay::SelectionBeaconOverlay |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ isEmpty()
| bool SelectionBeaconOverlay::isEmpty |
( |
| ) |
const |
|
inline |
◆ needsRepaint
| void SelectionBeaconOverlay::needsRepaint |
( |
| ) |
|
|
signal |
Emitted while the flash animates so the canvas repaints its overlay stage. Stops firing once the flash has finished.
◆ paint()
| void SelectionBeaconOverlay::paint |
( |
QPainter & |
p, |
|
|
const std::function< QPointF(const QPointF &)> & |
toPixel, |
|
|
const QSize & |
viewport |
|
) |
| |
Draws the beacon(s) in DEVICE pixels.
- Parameters
-
| toPixel | maps scene coords → device pixels (MapCanvas supplies the same lambda the profile overlays use). |
| viewport | used to skip anchors outside the visible extent. |
◆ setAnchors()
| void SelectionBeaconOverlay::setAnchors |
( |
const QVector< QPointF > & |
sceneAnchors | ) |
|
Replaces the anchor set (scene coords) and restarts the flash. An empty set clears the overlay and stops the animation.
◆ setColor()
| void SelectionBeaconOverlay::setColor |
( |
const QColor & |
c | ) |
|
Accent colour; defaults to the selection colour the caller passes.
The documentation for this class was generated from the following files: