Abstract interface for zone detection + highlight lifecycle. More...
#include <phosphor-zones/include/PhosphorZones/IZoneDetector.h>
Signals | |
| void | layoutChanged () |
| void | zoneHighlighted (Zone *zone) |
| void | highlightsCleared () |
Public Member Functions | |
| IZoneDetector (QObject *parent=nullptr) | |
| ~IZoneDetector () override | |
| virtual void | setLayout (Layout *layout)=0 |
| virtual void | highlightZone (Zone *zone)=0 |
| virtual void | highlightZones (const QVector< Zone * > &zones)=0 |
| virtual void | clearHighlights ()=0 |
Public Member Functions inherited from PhosphorZones::IZoneDetection | |
| IZoneDetection ()=default | |
| virtual | ~IZoneDetection () |
| virtual Layout * | layout () const =0 |
| virtual ZoneDetectionResult | detectZone (const QPointF &cursorPos) const =0 |
| virtual ZoneDetectionResult | detectMultiZone (const QPointF &cursorPos) const =0 |
| virtual Zone * | zoneAtPoint (const QPointF &point) const =0 |
| virtual Zone * | nearestZone (const QPointF &point) const =0 |
| virtual QVector< Zone * > | expandPaintedZonesToRect (const QVector< Zone * > &seedZones) const =0 |
| Paint-to-snap: expand painted zones to include all zones intersecting the bounding rect (same raycasting algorithm as detectMultiZone and the editor). | |
Additional Inherited Members | |
Protected Member Functions inherited from PhosphorZones::IZoneDetection | |
| IZoneDetection (const IZoneDetection &)=default | |
| IZoneDetection & | operator= (const IZoneDetection &)=default |
Abstract interface for zone detection + highlight lifecycle.
Extends IZoneDetection with mutating highlight-management methods and the Qt signals that accompany them. Split is ISP-friendly — callers that only query (and don't care about highlights) take IZoneDetection*.
|
inlineexplicit |
|
override |
|
pure virtual |
Implemented in PhosphorZones::ZoneDetector.
|
signal |
|
pure virtual |
Implemented in PhosphorZones::ZoneDetector.
|
pure virtual |
Implemented in PhosphorZones::ZoneDetector.
|
signal |
|
pure virtual |
Implemented in PhosphorZones::ZoneDetector.
|
signal |