SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
SelectionBeaconOverlay Class Reference

#include <selectionbeaconoverlay.h>

Inheritance diagram for SelectionBeaconOverlay:
Collaboration diagram for SelectionBeaconOverlay:

Signals

void needsRepaint ()
 

Public Member Functions

 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.
 

Constructor & Destructor Documentation

◆ SelectionBeaconOverlay()

SelectionBeaconOverlay::SelectionBeaconOverlay ( QObject *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ isEmpty()

bool SelectionBeaconOverlay::isEmpty ( ) const
inline
Here is the caller graph for this function:

◆ needsRepaint

void SelectionBeaconOverlay::needsRepaint ( )
signal

Emitted while the flash animates so the canvas repaints its overlay stage. Stops firing once the flash has finished.

Here is the caller graph for this function:

◆ paint()

void SelectionBeaconOverlay::paint ( QPainter &  p,
const std::function< QPointF(const QPointF &)> &  toPixel,
const QSize &  viewport 
)

Draws the beacon(s) in DEVICE pixels.

Parameters
toPixelmaps scene coords → device pixels (MapCanvas supplies the same lambda the profile overlays use).
viewportused to skip anchors outside the visible extent.
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setColor()

void SelectionBeaconOverlay::setColor ( const QColor &  c)

Accent colour; defaults to the selection colour the caller passes.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: